summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/audio/wm8751.c3
-rw-r--r--firmware/sound.c4
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;
}