From e9b061a7174298c61dd1f935a38654e07f573197 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Sat, 1 Aug 2009 21:50:19 +0000 Subject: Fix red: only use SW_VOLUME_MIN if HAVE_SW_VOLUME_CONTROL is defined git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22107 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/mips/ingenic_jz47xx/codec-jz4740.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'firmware/target/mips/ingenic_jz47xx/codec-jz4740.c') diff --git a/firmware/target/mips/ingenic_jz47xx/codec-jz4740.c b/firmware/target/mips/ingenic_jz47xx/codec-jz4740.c index 3a124e1356..ac78be522b 100644 --- a/firmware/target/mips/ingenic_jz47xx/codec-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/codec-jz4740.c @@ -27,8 +27,11 @@ /* TODO */ const struct sound_settings_info audiohw_settings[] = { - /* HAVE_SW_VOLUME_CONTROL */ +#ifdef HAVE_SW_VOLUME_CONTROL [SOUND_VOLUME] = {"dB", 0, 1, SW_VOLUME_MIN, 6, 0}, +#else + [SOUND_VOLUME] = {"dB", 0, 1, 0, 6, 0}, +#endif /* HAVE_SW_TONE_CONTROLS */ [SOUND_BASS] = {"dB", 0, 1, -24, 24, 0}, [SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0}, -- cgit v1.2.3