diff options
-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 | } |