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

Commit bffd2208 authored by Sidipotu Ashok's avatar Sidipotu Ashok Committed by Gerrit - the friendly Code Review server
Browse files

hal: use ANC devices when ANC is enabled for Native streams

ANC and 44.1 playback funtionality cannot be both supported
pick up ANC devices and play native streams non-natively on
ANC headphones device.
CRs-Fixed: 877404

Change-Id: Ifff05c4674799da37e951946215072529aa7fb55
parent 2bd36888
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2294,7 +2294,8 @@ snd_device_t platform_get_output_snd_device(void *platform, struct stream_out *o
    if (devices & AUDIO_DEVICE_OUT_WIRED_HEADPHONE ||
        devices & AUDIO_DEVICE_OUT_WIRED_HEADSET) {
        if (OUTPUT_SAMPLING_RATE_44100 == sample_rate &&
            platform_get_native_support()) {
            platform_get_native_support() &&
            !audio_extn_get_anc_enabled()) {
            snd_device = SND_DEVICE_OUT_HEADPHONES_44_1;
        }else if (devices & AUDIO_DEVICE_OUT_WIRED_HEADSET
            && audio_extn_get_anc_enabled()) {