hal: Use high quality for 44.1KHz sample rate and higher bit-width
Configure headphone path to high quality for audio sample rate
equal to 44.1KHz and 24 or 32 bit-width.
Change-Id: I5b8ce1e0487c3b77802c8d170919f54a65bdb952
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 2dd1d13..1f81973 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -4422,7 +4422,8 @@
if (snd_device == SND_DEVICE_OUT_HEADPHONES || snd_device ==
SND_DEVICE_OUT_HEADPHONES_44_1) {
- if (sample_rate > 48000 || (sample_rate == 48000 && bit_width >= 24)) {
+ if (sample_rate > 48000 ||
+ (bit_width >= 24 && (sample_rate == 48000 || sample_rate == 44100))) {
ALOGV("%s: apply HPH HQ mode\n", __func__);
audio_route_apply_and_update_path(adev->audio_route, "hph-highquality-mode");
} else {