summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-01 21:50:19 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-01 21:50:19 +0000
commite9b061a7174298c61dd1f935a38654e07f573197 (patch)
tree6d1e3bedc53d050896b716490fd11a45712a6045 /firmware
parent3c7c79189e2912ac179deab21c92ffb3448b128b (diff)
downloadrockbox-e9b061a7174298c61dd1f935a38654e07f573197.tar.gz
rockbox-e9b061a7174298c61dd1f935a38654e07f573197.tar.bz2
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')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/codec-jz4740.c5
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 @@
/* 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},