summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/sound.c2
-rw-r--r--uisimulator/sdl/sound.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/sound.c b/firmware/sound.c
index 84c022e0c0..d64dfcfdb9 100644
--- a/firmware/sound.c
+++ b/firmware/sound.c
@@ -149,7 +149,7 @@ void sound_set_dsp_callback(int (*func)(int, intptr_t))
149} 149}
150#endif 150#endif
151 151
152#if CONFIG_CODEC == MAS3507D 152#if (CONFIG_CODEC == MAS3507D) && !defined(SIMULATOR)
153/* convert tenth of dB volume (-780..+180) to dac3550 register value */ 153/* convert tenth of dB volume (-780..+180) to dac3550 register value */
154static int tenthdb2reg(int db) 154static int tenthdb2reg(int db)
155{ 155{
diff --git a/uisimulator/sdl/sound.c b/uisimulator/sdl/sound.c
index aa689b921d..8d9dbeb743 100644
--- a/uisimulator/sdl/sound.c
+++ b/uisimulator/sdl/sound.c
@@ -379,10 +379,10 @@ void audiohw_set_channel(int value) { (void)value; }
379void audiohw_set_stereo_width(int value){ (void)value; } 379void audiohw_set_stereo_width(int value){ (void)value; }
380#endif 380#endif
381#if defined(AUDIOHW_HAVE_BASS_CUTOFF) 381#if defined(AUDIOHW_HAVE_BASS_CUTOFF)
382void audiohw_set_bass_cutoff(value) { (void)value; } 382void audiohw_set_bass_cutoff(int value) { (void)value; }
383#endif 383#endif
384#if defined(AUDIOHW_HAVE_TREBLE_CUTOFF) 384#if defined(AUDIOHW_HAVE_TREBLE_CUTOFF)
385void audiohw_set_treble_cutoff(value) { (void)value; } 385void audiohw_set_treble_cutoff(int value){ (void)value; }
386#endif 386#endif
387#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) 387#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
388int mas_codec_readreg(int reg) 388int mas_codec_readreg(int reg)