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

Commit 9e84d17d authored by Juyu Chen's avatar Juyu Chen Committed by android-build-merger
Browse files

Merge "audio: don't start voice call when voice path is not ready." into qt-dev

am: bac127b2

Change-Id: I6dc3ad2b9a49f5877a1c49af25b1d17facefcd40
parents d578bfd0 bac127b2
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -212,8 +212,13 @@ int voice_start_usecase(struct audio_device *adev, audio_usecase_t usecase_id)
    if (adev->mic_break_enabled)
        platform_set_mic_break_det(adev->platform, true);

    pcm_start(session->pcm_tx);
    pcm_start(session->pcm_rx);
    ret = pcm_start(session->pcm_tx);
    if (ret != 0)
        goto error_start_voice;

    ret = pcm_start(session->pcm_rx);
    if (ret != 0)
        goto error_start_voice;

    audio_extn_tfa_98xx_enable_speaker();