summaryrefslogtreecommitdiff
path: root/firmware/export/config_caps.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config_caps.h')
-rw-r--r--firmware/export/config_caps.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/firmware/export/config_caps.h b/firmware/export/config_caps.h
index bc0a42bedf..fe32e4953c 100644
--- a/firmware/export/config_caps.h
+++ b/firmware/export/config_caps.h
@@ -122,7 +122,6 @@
122#include "pcm_sampr.h" 122#include "pcm_sampr.h"
123#undef PCM_SAMPR_CONFIG_ONLY 123#undef PCM_SAMPR_CONFIG_ONLY
124 124
125#define PLAY_SAMPR_CAPS (HW_SAMPR_CAPS & (SAMPR_CAP_44 | SAMPR_CAP_48))
126/** 125/**
127 * PLAY_SAMPR_MIN: The minimum allowable samplerate for global playback. 126 * PLAY_SAMPR_MIN: The minimum allowable samplerate for global playback.
128 * Music won't play at a lower rate. 127 * Music won't play at a lower rate.
@@ -133,18 +132,30 @@
133 * as the DSP core. DSP never exceeds *MAX to lessen 132 * as the DSP core. DSP never exceeds *MAX to lessen
134 * buffer allocation demands and overhead. 133 * buffer allocation demands and overhead.
135 */ 134 */
136#if PLAY_SAMPR_CAPS & (PLAY_SAMPR_CAPS - 1) 135#if (HW_SAMPR_CAPS & SAMPR_CAP_192)
137#define HAVE_PLAY_FREQ 136#define HAVE_PLAY_FREQ 192
137# define PLAY_SAMPR_MIN SAMPR_44
138# define PLAY_SAMPR_MAX SAMPR_192
139# define PLAY_SAMPR_DEFAULT SAMPR_44
140# define PLAY_SAMPR_HW_MIN HW_SAMPR_MIN
141#elif (HW_SAMPR_CAPS & SAMPR_CAP_96)
142#define HAVE_PLAY_FREQ 96
143# define PLAY_SAMPR_MIN SAMPR_44
144# define PLAY_SAMPR_MAX SAMPR_96
145# define PLAY_SAMPR_DEFAULT SAMPR_44
146# define PLAY_SAMPR_HW_MIN HW_SAMPR_MIN
147#elif ((HW_SAMPR_CAPS & (SAMPR_CAP_48 | SAMPR_CAP_44)) == (SAMPR_CAP_48 | SAMPR_CAP_44))
148#define HAVE_PLAY_FREQ 48
138# define PLAY_SAMPR_MIN SAMPR_44 149# define PLAY_SAMPR_MIN SAMPR_44
139# define PLAY_SAMPR_MAX SAMPR_48 150# define PLAY_SAMPR_MAX SAMPR_48
140# define PLAY_SAMPR_DEFAULT SAMPR_44 151# define PLAY_SAMPR_DEFAULT SAMPR_44
141# define PLAY_SAMPR_HW_MIN HW_SAMPR_MIN 152# define PLAY_SAMPR_HW_MIN HW_SAMPR_MIN
142#elif PLAY_SAMPR_CAPS & SAMPR_CAP_44 153#elif (HW_SAMPR_CAPS & SAMPR_CAP_44)
143# define PLAY_SAMPR_MIN SAMPR_44 154# define PLAY_SAMPR_MIN SAMPR_44
144# define PLAY_SAMPR_MAX SAMPR_44 155# define PLAY_SAMPR_MAX SAMPR_44
145# define PLAY_SAMPR_DEFAULT SAMPR_44 156# define PLAY_SAMPR_DEFAULT SAMPR_44
146# define PLAY_SAMPR_HW_MIN HW_SAMPR_MIN 157# define PLAY_SAMPR_HW_MIN HW_SAMPR_MIN
147#elif PLAY_SAMPR_CAPS & SAMPR_CAP_48 158#elif (HW_SAMPR_CAPS & SAMPR_CAP_48)
148# define PLAY_SAMPR_MIN SAMPR_48 159# define PLAY_SAMPR_MIN SAMPR_48
149# define PLAY_SAMPR_MAX SAMPR_48 160# define PLAY_SAMPR_MAX SAMPR_48
150# define PLAY_SAMPR_DEFAULT SAMPR_48 161# define PLAY_SAMPR_DEFAULT SAMPR_48