hal: Avoid enabling effects modules for non-native DSD
Effect modules doesn't support sampling rate > 192Khz and
also there is no need to apply SA+ effects for non native DSD.
So disabling effects for streams with sampling rate of 176.4Khz
and 352.8Khz.
CRs-fixed: 2002827
Change-Id: I832dafb389d2e9a1f06f98ade7507597aa2469b9
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 9d62533..78c3ba4 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -2285,7 +2285,8 @@
if (audio_extn_is_dolby_format(out->format))
audio_extn_dolby_send_ddp_endp_params(adev);
#endif
- if (!(audio_extn_passthru_is_passthrough_stream(out))) {
+ if (!(audio_extn_passthru_is_passthrough_stream(out)) &&
+ (out->sample_rate != 176400 && out->sample_rate <= 192000)) {
if (adev->visualizer_start_output != NULL)
adev->visualizer_start_output(out->handle, out->pcm_device_id);
if (adev->offload_effects_start_output != NULL)