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

Commit 5696e425 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 to handle voip issue when input stream starts first"

parents 7b05128b 0d06c8e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2226,7 +2226,8 @@ static int adev_open_output_stream(struct audio_hw_device *dev,

    /* Check if this usecase is already existing */
    pthread_mutex_lock(&adev->lock);
    if (get_usecase_from_list(adev, out->usecase) != NULL) {
    if ((get_usecase_from_list(adev, out->usecase) != NULL) &&
        (out->usecase != USECASE_COMPRESS_VOIP_CALL)) {
        ALOGE("%s: Usecase (%d) is already present", __func__, out->usecase);
        pthread_mutex_unlock(&adev->lock);
        ret = -EEXIST;