From 7eaea74f331b594eaf0154691e704259e5cb915a Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 25 Apr 2010 23:02:22 +0000 Subject: Fix yellows git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25720 a1c6a512-1295-4272-9138-f99709370657 --- firmware/sound.c | 2 +- uisimulator/sdl/sound.c | 4 ++-- 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)) } #endif -#if CONFIG_CODEC == MAS3507D +#if (CONFIG_CODEC == MAS3507D) && !defined(SIMULATOR) /* convert tenth of dB volume (-780..+180) to dac3550 register value */ static int tenthdb2reg(int db) { 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; } void audiohw_set_stereo_width(int value){ (void)value; } #endif #if defined(AUDIOHW_HAVE_BASS_CUTOFF) -void audiohw_set_bass_cutoff(value) { (void)value; } +void audiohw_set_bass_cutoff(int value) { (void)value; } #endif #if defined(AUDIOHW_HAVE_TREBLE_CUTOFF) -void audiohw_set_treble_cutoff(value) { (void)value; } +void audiohw_set_treble_cutoff(int value){ (void)value; } #endif #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) int mas_codec_readreg(int reg) -- cgit v1.2.3