From 0e90ba8aa75cb2f1e045cd24bcfe9fa985d6d130 Mon Sep 17 00:00:00 2001 From: Prasad Kumpatla Date: Tue, 4 Feb 2020 15:12:26 +0530 Subject: [PATCH] hal: Add Native Audio mode check for moorea target Add check to enable hifi filter in native_audio mode for moorea target.In moorea NATIVE_AUDIO_MODE_MULTIPLE_MIX_IN_DSP is unsupported, so add na_mode check as NATIVE_AUDIO_MODE_TRUE_44_1. Change-Id: I6983cec7c3dae5c71c46b4c8ebbf42c366167406 Signed-off-by: Prasad Kumpatla --- hal/audio_extn/audio_extn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hal/audio_extn/audio_extn.c b/hal/audio_extn/audio_extn.c index 5d5de7c0..f4574627 100644 --- a/hal/audio_extn/audio_extn.c +++ b/hal/audio_extn/audio_extn.c @@ -5325,7 +5325,8 @@ bool audio_extn_is_hifi_filter_enabled(struct audio_device* adev, struct stream_ if (audio_extn_hifi_filter_enabled) { /*Restricting the feature for Tavil and WCD9375 codecs only*/ if ((strstr(codec_variant, "WCD9385") || strstr(codec_variant, "WCD9375")) - && (na_mode == NATIVE_AUDIO_MODE_MULTIPLE_MIX_IN_DSP) && channels <=2) { + && (na_mode == NATIVE_AUDIO_MODE_MULTIPLE_MIX_IN_DSP || na_mode == + NATIVE_AUDIO_MODE_TRUE_44_1) && channels <=2) { /*Upsampling 8 time should be restricited to headphones playback only */ if (snd_device == SND_DEVICE_OUT_HEADPHONES || snd_device == SND_DEVICE_OUT_HEADPHONES_44_1