diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index 5a706da3b8..3f1bcb6feb 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h @@ -692,4 +692,9 @@ AUDIOHW_SETTING(BALANCE, "%", 0, 1, -100, 100, 0) AUDIOHW_SETTING(CHANNELS, "", 0, 1, 0, 5, 0) AUDIOHW_SETTING(STEREO_WIDTH, "%", 0, 5, 0, 250, 100) +/* if not otherwise defined, set to 16 */ +#if !defined(PCM_NATIVE_BITDEPTH) +# define PCM_NATIVE_BITDEPTH 16 +#endif + #endif /* _AUDIOHW_H_ */ diff --git a/firmware/pcm_sw_volume.c b/firmware/pcm_sw_volume.c index 646f2a680a..bee1559bb8 100644 --- a/firmware/pcm_sw_volume.c +++ b/firmware/pcm_sw_volume.c @@ -49,11 +49,6 @@ static uint32_t pcm_new_factor_l = 0, pcm_new_factor_r = 0; static uint32_t pcm_factor_l = 0, pcm_factor_r = 0; static typeof (memcpy) *pcm_scaling_fn = NULL; -/* default to 16-bit volume scaling unless specified */ -#if !defined(PCM_NATIVE_BITDEPTH) -# define PCM_NATIVE_BITDEPTH 16 -#endif - /* take care of some defines for 32-bit software vol */ #if (PCM_NATIVE_BITDEPTH > 16) /* >16-bit */ diff --git a/firmware/target/mips/ingenic_x1000/pcm-x1000.c b/firmware/target/mips/ingenic_x1000/pcm-x1000.c index 73c568c950..ce2fbb17a9 100644 --- a/firmware/target/mips/ingenic_x1000/pcm-x1000.c +++ b/firmware/target/mips/ingenic_x1000/pcm-x1000.c @@ -48,11 +48,6 @@ static void pcm_play_dma_int_cb(int event); static void pcm_rec_dma_int_cb(int event); #endif -/* if not otherwise defined, set to 16 */ -#if !defined(PCM_NATIVE_BITDEPTH) -# define PCM_NATIVE_BITDEPTH 16 -#endif - void pcm_play_dma_init(void) { /* Ungate clock, assign pins. NB this overlaps with pins labeled "sa0-sa4"