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

Commit 590d0432 authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat
Browse files

hal: Fix ADM sampling rate for native playback.

-ADM is being opened at 48Khz instead of 44.1Khz where single
 backend used for 48Khz and 44.1Khz playback.
-Add check for other headphone snd device which supports native
 playback.

Change-Id: If27906425d36fc02b0df011b21b8f9935dfe9159
parent 9b13af2e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2775,6 +2775,8 @@ int select_devices(struct audio_device *adev, audio_usecase_t uc_id)
                    usecase->stream.out->sample_rate,
                    &usecase->stream.out->app_type_cfg.sample_rate);
        } else if (((out_snd_device != SND_DEVICE_OUT_HEADPHONES_44_1 &&
                     out_snd_device != SND_DEVICE_OUT_HEADPHONES &&
                     out_snd_device != SND_DEVICE_OUT_HEADPHONES_HIFI_FILTER &&
                     !audio_is_true_native_stream_active(adev)) &&
                    usecase->stream.out->sample_rate == OUTPUT_SAMPLING_RATE_44100) ||
                    (usecase->stream.out->sample_rate < OUTPUT_SAMPLING_RATE_44100)) {