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

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

Merge "hal: Fix for acdb id mismatch on device switch"

parents fa3fe6bb cc7c4dea
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1382,13 +1382,11 @@ int platform_send_audio_calibration(void *platform, struct audio_usecase *usecas
    int snd_device = SND_DEVICE_OUT_SPEAKER;

    if (usecase->type == PCM_PLAYBACK) {
        snd_device = platform_get_output_snd_device(adev->platform,
                                            usecase->stream.out->devices);
        snd_device = usecase->out_snd_device;
        if(usecase->id != USECASE_AUDIO_PLAYBACK_OFFLOAD)
            app_type = APP_TYPE_SYSTEM_SOUNDS;
    } else if ((usecase->type == PCM_HFP_CALL) || (usecase->type == PCM_CAPTURE)) {
        snd_device = platform_get_input_snd_device(adev->platform,
                                            adev->primary_output->devices);
        snd_device = usecase->in_snd_device;
        app_type = APP_TYPE_GENERAL_RECORDING;
    }