commit | 468c6fc8345013b6b9751d817a65d60511e559cf | [log] [tgz] |
---|---|---|
author | Jack He <siyuanh@google.com> | Thu Apr 21 06:41:23 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Apr 21 06:41:23 2022 +0000 |
tree | 3955eb46ed7528c7b67c91ce4eff2002bd7c2017 | |
parent | 8fa32c2ca0ee0699491ed0ae56e5d787da702b03 [diff] | |
parent | cb64b3b61be9af9ebd443bd45ac5dd0d6531571a [diff] |
Merge "leaudio: Make sure Audio HAL is always notified corretly" am: e487d77732 am: cb64b3b61b Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2030114 Change-Id: I20a3338e56836dae6457807e7de4e717db09e54c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/system/bta/le_audio/client.cc b/system/bta/le_audio/client.cc index f029a53..b296cf3 100644 --- a/system/bta/le_audio/client.cc +++ b/system/bta/le_audio/client.cc
@@ -2478,8 +2478,7 @@ } void SuspendAudio(void) { - audio_receiver_state_ = AudioState::IDLE; - audio_sender_state_ = AudioState::IDLE; + CancelStreamingRequest(); if (lc3_encoder_left_mem) { free(lc3_encoder_left_mem);