diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2008-05-16 20:40:59 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2008-05-16 20:40:59 +0000 |
commit | 56fceacfeb427c230c0e72a2bb63d4d24a23deac (patch) | |
tree | 4133a00fe866efde565b8defc624ed88c836b8d2 /firmware/drivers/audio/wm8731.c | |
parent | 5a2ec635110b8b78bbaeced3af54c30d65818a1d (diff) |
fix some problems with missing HAVE_RECORDING checks
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17544 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio/wm8731.c')
-rw-r--r-- | firmware/drivers/audio/wm8731.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/audio/wm8731.c b/firmware/drivers/audio/wm8731.c index 7d25849158..a4f35743bd 100644 --- a/firmware/drivers/audio/wm8731.c +++ b/firmware/drivers/audio/wm8731.c @@ -114,6 +114,7 @@ int sound_val2phys(int setting, int value) switch(setting) { +#ifdef HAVE_RECORDING case SOUND_LEFT_GAIN: case SOUND_RIGHT_GAIN: result = (value - 23) * 15; @@ -121,6 +122,7 @@ int sound_val2phys(int setting, int value) case SOUND_MIC_GAIN: result = value * 200; break; +#endif default: result = value; break; |