diff options
author | Prasad Kumpatla <nkumpat@codeaurora.org> | 2020-02-04 15:12:26 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-02-12 02:36:36 -0800 |
commit | c65f2512035f1851f82c0dae86fd4f14619bbf4b (patch) | |
tree | 01f27cbcd5bee7363a86baad9e40c68546096f56 /hal | |
parent | fc603683b1ea1ea0ce8206a87e8511f1d44863cd (diff) | |
download | android_hardware_qcom_audio-c65f2512035f1851f82c0dae86fd4f14619bbf4b.tar.gz android_hardware_qcom_audio-c65f2512035f1851f82c0dae86fd4f14619bbf4b.tar.bz2 android_hardware_qcom_audio-c65f2512035f1851f82c0dae86fd4f14619bbf4b.zip |
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>
Diffstat (limited to 'hal')
-rw-r--r-- | hal/audio_extn/audio_extn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hal/audio_extn/audio_extn.c b/hal/audio_extn/audio_extn.c index d5f303fc..3d6d366a 100644 --- a/hal/audio_extn/audio_extn.c +++ b/hal/audio_extn/audio_extn.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2020, The Linux Foundation. All rights reserved. * Not a Contribution. * * Copyright (C) 2013 The Android Open Source Project @@ -5217,7 +5217,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 |