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

Commit cdaef2a5 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 for VoIP call audio mode switch bug" into audio-userspace.lnx.2.2-dev

parents 1181b299 305d0d21
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
 * Not a contribution.
 *
 * Copyright (C) 2013 The Android Open Source Project
@@ -284,9 +284,14 @@ static int voip_stop_call(struct audio_device *adev)
            uc_info = node_to_item(node, struct audio_usecase, list);
            select_devices(adev, uc_info->id);
        }
    } else
        ALOGV("%s: NO-OP because out_stream_count=%d, in_stream_count=%d",
    } else {
        ALOGV("%s: unexpected because out_stream_count=%d, in_stream_count=%d",
               __func__, voip_data.out_stream_count, voip_data.in_stream_count);
        uc_info = get_usecase_from_list(adev, USECASE_COMPRESS_VOIP_CALL);
        if (uc_info)
            uc_info->stream.out = adev->primary_output;
        ret = -EINVAL;
    }

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