diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-08-01 21:50:19 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-08-01 21:50:19 +0000 |
commit | e9b061a7174298c61dd1f935a38654e07f573197 (patch) | |
tree | 6d1e3bedc53d050896b716490fd11a45712a6045 /firmware/target/mips/ingenic_jz47xx/codec-jz4740.c | |
parent | 3c7c79189e2912ac179deab21c92ffb3448b128b (diff) | |
download | rockbox-e9b061a7174298c61dd1f935a38654e07f573197.tar.gz rockbox-e9b061a7174298c61dd1f935a38654e07f573197.zip |
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
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/codec-jz4740.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/codec-jz4740.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 @@ | |||
27 | 27 | ||
28 | /* TODO */ | 28 | /* TODO */ |
29 | const struct sound_settings_info audiohw_settings[] = { | 29 | const struct sound_settings_info audiohw_settings[] = { |
30 | /* HAVE_SW_VOLUME_CONTROL */ | 30 | #ifdef HAVE_SW_VOLUME_CONTROL |
31 | [SOUND_VOLUME] = {"dB", 0, 1, SW_VOLUME_MIN, 6, 0}, | 31 | [SOUND_VOLUME] = {"dB", 0, 1, SW_VOLUME_MIN, 6, 0}, |
32 | #else | ||
33 | [SOUND_VOLUME] = {"dB", 0, 1, 0, 6, 0}, | ||
34 | #endif | ||
32 | /* HAVE_SW_TONE_CONTROLS */ | 35 | /* HAVE_SW_TONE_CONTROLS */ |
33 | [SOUND_BASS] = {"dB", 0, 1, -24, 24, 0}, | 36 | [SOUND_BASS] = {"dB", 0, 1, -24, 24, 0}, |
34 | [SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0}, | 37 | [SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0}, |