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

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

Merge "hal: properly reset sample rate of VoIP data"

parents 2be80d22 6b5e728e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -287,6 +287,7 @@ static int voip_stop_call(struct audio_device *adev)
           __func__, voip_data.out_stream_count, voip_data.in_stream_count);

    if (!voip_data.out_stream_count && !voip_data.in_stream_count) {
        voip_data.sample_rate = 0;
        uc_info = get_usecase_from_list(adev, USECASE_COMPRESS_VOIP_CALL);
        if (uc_info == NULL) {
            ALOGE("%s: Could not find the usecase (%d) in the list",
@@ -313,7 +314,6 @@ static int voip_stop_call(struct audio_device *adev)

        list_remove(&uc_info->list);
        free(uc_info);
        voip_data.sample_rate = 0;
    } else
        ALOGV("%s: NO-OP because out_stream_count=%d, in_stream_count=%d",
               __func__, voip_data.out_stream_count, voip_data.in_stream_count);