diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2011-03-14 23:14:07 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2011-03-14 23:14:07 +0000 |
commit | f056669dcd1cc030e1d6206bda9a50beccbc8fc1 (patch) | |
tree | 9506d7fdb40df206fb983319cc6e00adf2733fc1 | |
parent | ae68278c8d3c253b2417439b0176f97476f8caa4 (diff) | |
download | rockbox-f056669dcd1cc030e1d6206bda9a50beccbc8fc1.tar.gz rockbox-f056669dcd1cc030e1d6206bda9a50beccbc8fc1.zip |
fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29589 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/audio/wm8751.c | 3 | ||||
-rw-r--r-- | 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) | |||
202 | result = value * 5; | 202 | result = value * 5; |
203 | break; | 203 | break; |
204 | #endif | 204 | #endif |
205 | #ifdef AUDIOHW_HAVE_DEPTH_3D | ||
205 | case SOUND_DEPTH_3D: | 206 | case SOUND_DEPTH_3D: |
206 | result = (100 * value + 8) / 15; | 207 | result = (100 * value + 8) / 15; |
207 | break; | 208 | break; |
208 | 209 | #endif | |
209 | default: | 210 | default: |
210 | result = value; | 211 | result = value; |
211 | } | 212 | } |
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) | |||
761 | result = value * 5; | 761 | result = value * 5; |
762 | break; | 762 | break; |
763 | #endif | 763 | #endif |
764 | 764 | #ifdef AUDIOHW_HAVE_DEPTH_3D | |
765 | case SOUND_DEPTH_3D: | 765 | case SOUND_DEPTH_3D: |
766 | result = (100 * value + 8) / 15; | 766 | result = (100 * value + 8) / 15; |
767 | break; | 767 | break; |
768 | 768 | #endif | |
769 | default: | 769 | default: |
770 | result = value; | 770 | result = value; |
771 | } | 771 | } |