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

Commit 3da41acc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: Validate active input before accessing source"

parents 692a5cc9 114bce2c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -870,7 +870,8 @@ int select_devices(struct audio_device *adev, audio_usecase_t uc_id)
            out_snd_device = SND_DEVICE_NONE;
            if (in_snd_device == SND_DEVICE_NONE) {
                audio_devices_t out_device = AUDIO_DEVICE_NONE;
                if (adev->active_input->source == AUDIO_SOURCE_VOICE_COMMUNICATION &&
                if (adev->active_input &&
                        adev->active_input->source == AUDIO_SOURCE_VOICE_COMMUNICATION &&
                        adev->primary_output && !adev->primary_output->standby) {
                    out_device = adev->primary_output->devices;
                    platform_set_echo_reference(adev->platform, false);