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

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

hal: fix hifi filter snd device selection.

 -hifi filter snd device is getting selected incorrectly
  in some cases as it is checked with APM output device 
  leading to playback failure
 -remove incorrect APM output device check for snd device
  hifi filter.


Change-Id: Ib694665b9395dffce74053f7dd399372a48ea5ac
parent 4d295044
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -6219,8 +6219,6 @@ snd_device_t platform_get_output_snd_device(void *platform, struct stream_out *o
        } else if (audio_extn_is_hifi_filter_enabled(adev, out, snd_device,
             my_data->codec_variant, channel_count, 1)) {
                snd_device = SND_DEVICE_OUT_HEADPHONES_HIFI_FILTER;
        } else if (devices & SND_DEVICE_OUT_HEADPHONES_HIFI_FILTER) {
                snd_device = SND_DEVICE_OUT_HEADPHONES_HIFI_FILTER;
        } else if (devices & AUDIO_DEVICE_OUT_LINE) {
                snd_device = SND_DEVICE_OUT_LINE;
        } else