Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d18d883e authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat Committed by Gerrit - the friendly Code Review server
Browse files

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
parent c6b0a745
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2285,7 +2285,8 @@ int start_output_stream(struct stream_out *out)
        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)