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

Commit 0801459a 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 after usecase is removed from list" into...

Merge "hal: update active_input after usecase is removed from list" into audio-userspace.lnx.2.2-dev
parents 7df84d17 2e9b2e4d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1666,8 +1666,6 @@ static int stop_input_stream(struct stream_in *in)
    struct audio_usecase *uc_info;
    struct audio_device *adev = in->dev;

    adev->active_input = get_next_active_input(adev);

    ALOGV("%s: enter: usecase(%d: %s)", __func__,
          in->usecase, use_case_table[in->usecase]);
    uc_info = get_usecase_from_list(adev, in->usecase);
@@ -1689,6 +1687,8 @@ static int stop_input_stream(struct stream_in *in)
    list_remove(&uc_info->list);
    free(uc_info);

    adev->active_input = get_next_active_input(adev);

    ALOGV("%s: exit: status(%d)", __func__, ret);
    return ret;
}