From f056669dcd1cc030e1d6206bda9a50beccbc8fc1 Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Mon, 14 Mar 2011 23:14:07 +0000 Subject: [PATCH] fix red git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29589 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/audio/wm8751.c | 3 ++- firmware/sound.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/firmware/drivers/audio/wm8751.c b/firmware/drivers/audio/wm8751.c index 02a04a3802..30c3b0d287 100644 --- a/firmware/drivers/audio/wm8751.c +++ b/firmware/drivers/audio/wm8751.c @@ -202,10 +202,11 @@ int sound_val2phys(int setting, int value) result = value * 5; break; #endif +#ifdef AUDIOHW_HAVE_DEPTH_3D case SOUND_DEPTH_3D: result = (100 * value + 8) / 15; break; - +#endif default: result = value; } diff --git a/firmware/sound.c b/firmware/sound.c index 658a732a15..f58dddd740 100644 --- a/firmware/sound.c +++ b/firmware/sound.c @@ -761,11 +761,11 @@ int sound_val2phys(int setting, int value) result = value * 5; break; #endif - +#ifdef AUDIOHW_HAVE_DEPTH_3D case SOUND_DEPTH_3D: result = (100 * value + 8) / 15; break; - +#endif default: result = value; }