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 <nkumpat@codeaurora.org>
This commit is contained in:
Prasad Kumpatla 2020-02-04 15:12:26 +05:30 committed by Gerrit - the friendly Code Review server
parent 2e64f5144c
commit 0e90ba8aa7
1 changed files with 2 additions and 1 deletions

View File

@ -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