summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-11-24 19:04:29 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-11-24 19:04:29 +0000
commit68bf125feb7fdbd8a2b4757288774416e74a94b0 (patch)
tree89805a5ce9393c82a54c81b86c2f18b1dd54f159 /firmware
parentc16effb4bf55b4b786e5bf30d0bd51fd3c78da87 (diff)
Fix compilation of Clip simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19203 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/sound.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/sound.c b/firmware/sound.c
index 0a95562b22..4d109b3900 100644
--- a/firmware/sound.c
+++ b/firmware/sound.c
@@ -690,12 +690,13 @@ int sound_val2phys(int setting, int value)
switch(setting)
{
+#ifdef HAVE_RECORDING
case SOUND_LEFT_GAIN:
case SOUND_RIGHT_GAIN:
case SOUND_MIC_GAIN:
result = (value - 23) * 15;
break;
-
+#endif
default:
result = value;
break;