summaryrefslogtreecommitdiffstats
path: root/hal/voice.c
diff options
context:
space:
mode:
Diffstat (limited to 'hal/voice.c')
-rw-r--r--hal/voice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hal/voice.c b/hal/voice.c
index 94afa47c..d5dcc19b 100644
--- a/hal/voice.c
+++ b/hal/voice.c
@@ -326,12 +326,12 @@ int voice_set_volume(struct audio_device *adev, float volume)
}
vol = lrint(volume * 100.0);
-
+#ifndef USE_ES705
// Voice volume levels from android are mapped to driver volume levels as follows.
// 0 -> 5, 20 -> 4, 40 ->3, 60 -> 2, 80 -> 1, 100 -> 0
// So adjust the volume to get the correct volume index in driver
vol = 100 - vol;
-
+#endif
err = platform_set_voice_volume(adev->platform, vol);
}
if (adev->mode == AUDIO_MODE_IN_COMMUNICATION)