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

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

Merge "hal: Update active input stream for Voip when voip input started"

parents ca320d77 f266f488
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -612,6 +612,7 @@ int voice_extn_compress_voip_start_input_stream(struct stream_in *in)
    if (!voip_data.in_stream_count)
        ret = voice_extn_compress_voip_open_input_stream(in);

    adev->active_input = in;
    ret = voip_start_call(adev, &in->config);
    in->pcm = voip_data.pcm_tx;

@@ -670,6 +671,7 @@ int voice_extn_compress_voip_close_input_stream(struct audio_stream *stream)
    ALOGD("%s: enter", __func__);

    if(voip_data.in_stream_count > 0) {
       adev->active_input = NULL;
       voip_data.in_stream_count--;
       status = voip_stop_call(adev);
       in->pcm = NULL;