summaryrefslogtreecommitdiff
path: root/firmware/sound.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/sound.c')
-rw-r--r--firmware/sound.c2
1 files changed, 1 insertions, 1 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{