A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

move PCM_NATIVE_BITDEPTH definiton into global config code

Change-Id: I391bcffca670916c2c88426e2ba2603351326cee

+5 -10
+5
firmware/export/audiohw.h
··· 692 AUDIOHW_SETTING(CHANNELS, "", 0, 1, 0, 5, 0) 693 AUDIOHW_SETTING(STEREO_WIDTH, "%", 0, 5, 0, 250, 100) 694 695 #endif /* _AUDIOHW_H_ */
··· 692 AUDIOHW_SETTING(CHANNELS, "", 0, 1, 0, 5, 0) 693 AUDIOHW_SETTING(STEREO_WIDTH, "%", 0, 5, 0, 250, 100) 694 695 + /* if not otherwise defined, set to 16 */ 696 + #if !defined(PCM_NATIVE_BITDEPTH) 697 + # define PCM_NATIVE_BITDEPTH 16 698 + #endif 699 + 700 #endif /* _AUDIOHW_H_ */
-5
firmware/pcm_sw_volume.c
··· 49 static uint32_t pcm_factor_l = 0, pcm_factor_r = 0; 50 static typeof (memcpy) *pcm_scaling_fn = NULL; 51 52 - /* default to 16-bit volume scaling unless specified */ 53 - #if !defined(PCM_NATIVE_BITDEPTH) 54 - # define PCM_NATIVE_BITDEPTH 16 55 - #endif 56 - 57 /* take care of some defines for 32-bit software vol */ 58 #if (PCM_NATIVE_BITDEPTH > 16) /* >16-bit */ 59
··· 49 static uint32_t pcm_factor_l = 0, pcm_factor_r = 0; 50 static typeof (memcpy) *pcm_scaling_fn = NULL; 51 52 /* take care of some defines for 32-bit software vol */ 53 #if (PCM_NATIVE_BITDEPTH > 16) /* >16-bit */ 54
-5
firmware/target/mips/ingenic_x1000/pcm-x1000.c
··· 48 static void pcm_rec_dma_int_cb(int event); 49 #endif 50 51 - /* if not otherwise defined, set to 16 */ 52 - #if !defined(PCM_NATIVE_BITDEPTH) 53 - # define PCM_NATIVE_BITDEPTH 16 54 - #endif 55 - 56 void pcm_play_dma_init(void) 57 { 58 /* Ungate clock, assign pins. NB this overlaps with pins labeled "sa0-sa4"
··· 48 static void pcm_rec_dma_int_cb(int event); 49 #endif 50 51 void pcm_play_dma_init(void) 52 { 53 /* Ungate clock, assign pins. NB this overlaps with pins labeled "sa0-sa4"