hal: use ANC devices when ANC is enabled for Native streams
ANC and 44.1 playback funtionality cannot be both supported
pick up ANC devices and play native streams non-natively on
ANC headphones device.
CRs-Fixed: 877404
Change-Id: Ifff05c4674799da37e951946215072529aa7fb55
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index eb6b07d..c632a82 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -2528,7 +2528,8 @@
if (devices & AUDIO_DEVICE_OUT_WIRED_HEADPHONE ||
devices & AUDIO_DEVICE_OUT_WIRED_HEADSET) {
if (OUTPUT_SAMPLING_RATE_44100 == sample_rate &&
- platform_get_native_support()) {
+ platform_get_native_support() &&
+ !audio_extn_get_anc_enabled()) {
snd_device = SND_DEVICE_OUT_HEADPHONES_44_1;
}else if (devices & AUDIO_DEVICE_OUT_WIRED_HEADSET
&& audio_extn_get_anc_enabled()) {