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
This commit is contained in:
Maurus Cuelenaere 2009-08-01 21:50:19 +00:00
parent 3c7c79189e
commit e9b061a717

View file

@ -27,8 +27,11 @@
/* TODO */ /* TODO */
const struct sound_settings_info audiohw_settings[] = { 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}, [SOUND_VOLUME] = {"dB", 0, 1, SW_VOLUME_MIN, 6, 0},
#else
[SOUND_VOLUME] = {"dB", 0, 1, 0, 6, 0},
#endif
/* HAVE_SW_TONE_CONTROLS */ /* HAVE_SW_TONE_CONTROLS */
[SOUND_BASS] = {"dB", 0, 1, -24, 24, 0}, [SOUND_BASS] = {"dB", 0, 1, -24, 24, 0},
[SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0}, [SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0},