summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2007-05-22 16:12:30 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2007-05-22 16:12:30 +0000
commit98e4f6fd3e882f445db01cb5bb8ec0bf235974d3 (patch)
treed4c4868a3e1e808f5fd3ab45b94f06a5c9fc79f8 /firmware/drivers
parentcdbf33adf719a54221f4f5aac4b15b0dfe54d24d (diff)
fix red ipod mini's
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13465 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/audio/wm8731l.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/audio/wm8731l.c b/firmware/drivers/audio/wm8731l.c
index dcf7c4eca0..ba575c1bb7 100644
--- a/firmware/drivers/audio/wm8731l.c
+++ b/firmware/drivers/audio/wm8731l.c
@@ -23,6 +23,7 @@
* KIND, either express or implied.
*
****************************************************************************/
+#include "config.h"
#include "logf.h"
#include "system.h"
#include "string.h"
@@ -45,9 +46,11 @@ const struct sound_settings_info audiohw_settings[] = {
[SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
[SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
[SOUND_STEREO_WIDTH] = {"%", 0, 1, 0, 255, 100},
+#ifdef HAVE_RECORDING
[SOUND_LEFT_GAIN] = {"dB", 1, 1,-128, 96, 0},
[SOUND_RIGHT_GAIN] = {"dB", 1, 1,-128, 96, 0},
[SOUND_MIC_GAIN] = {"dB", 1, 1,-128, 108, 16},
+#endif
};
/* convert tenth of dB volume (-730..60) to master volume register value */