diff options
Diffstat (limited to 'firmware/export/pcm_sampr.h')
-rw-r--r-- | firmware/export/pcm_sampr.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/firmware/export/pcm_sampr.h b/firmware/export/pcm_sampr.h index 27a300d645..b27050ec60 100644 --- a/firmware/export/pcm_sampr.h +++ b/firmware/export/pcm_sampr.h | |||
@@ -292,18 +292,13 @@ enum rec_freq_indexes | |||
292 | #define REC_HAVE_8_(...) | 292 | #define REC_HAVE_8_(...) |
293 | #endif | 293 | #endif |
294 | REC_NUM_FREQ, | 294 | REC_NUM_FREQ, |
295 | /* This should always come out I reckon */ | ||
296 | REC_FREQ_DEFAULT = REC_FREQ_44, | ||
297 | /* Get the minimum bitcount needed to save the range of values */ | ||
298 | REC_FREQ_CFG_NUM_BITS = (REC_NUM_FREQ > 8 ? | ||
299 | 4 : (REC_NUM_FREQ > 4 ? | ||
300 | 3 : (REC_NUM_FREQ > 2 ? | ||
301 | 2 : 1 | ||
302 | ) | ||
303 | ) | ||
304 | ), | ||
305 | }; /* enum rec_freq_indexes */ | 295 | }; /* enum rec_freq_indexes */ |
306 | 296 | ||
297 | /* Default to 44.1kHz if not otherwise specified */ | ||
298 | #ifndef REC_FREQ_DEFAULT | ||
299 | #define REC_FREQ_DEFAULT REC_FREQ_44 | ||
300 | #endif | ||
301 | |||
307 | #define REC_FREQ_CFG_VAL_LIST &REC_HAVE_96_(",96") REC_HAVE_88_(",88") \ | 302 | #define REC_FREQ_CFG_VAL_LIST &REC_HAVE_96_(",96") REC_HAVE_88_(",88") \ |
308 | REC_HAVE_64_(",64") REC_HAVE_48_(",48") \ | 303 | REC_HAVE_64_(",64") REC_HAVE_48_(",48") \ |
309 | REC_HAVE_44_(",44") REC_HAVE_32_(",32") \ | 304 | REC_HAVE_44_(",44") REC_HAVE_32_(",32") \ |