From 2ea6da1ebf328a2f9565fe596c774828fd018f2f Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 16 May 2008 20:51:56 +0000 Subject: fix some problems with missing HAVE_RECORDING checks #2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17545 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/audio/tlv320.c | 2 ++ firmware/drivers/audio/wm8985.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'firmware/drivers/audio') diff --git a/firmware/drivers/audio/tlv320.c b/firmware/drivers/audio/tlv320.c index 8839078..d3669a2 100644 --- a/firmware/drivers/audio/tlv320.c +++ b/firmware/drivers/audio/tlv320.c @@ -37,9 +37,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, 5, 0, 250, 100}, +#ifdef HAVE_RECORDING [SOUND_LEFT_GAIN] = {"dB", 1, 1, 0, 31, 23}, [SOUND_RIGHT_GAIN] = {"dB", 1, 1, 0, 31, 23}, [SOUND_MIC_GAIN] = {"dB", 1, 1, 0, 1, 1}, +#endif }; /* convert tenth of dB volume (-840..0) to master volume register value */ diff --git a/firmware/drivers/audio/wm8985.c b/firmware/drivers/audio/wm8985.c index 95afbd9..6f8d659 100644 --- a/firmware/drivers/audio/wm8985.c +++ b/firmware/drivers/audio/wm8985.c @@ -105,9 +105,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, 5, 0, 250, 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 [SOUND_BASS_CUTOFF] = {"", 0, 1, 1, 4, 1}, [SOUND_TREBLE_CUTOFF] = {"", 0, 1, 1, 4, 1}, }; -- cgit v1.1