OSDN Git Service

BluetoothAudioHAL: Wait for A2DP not playing if receiving A2dpSuspended=true
authorCheney Ni <cheneyni@google.com>
Thu, 29 Apr 2021 12:07:07 +0000 (20:07 +0800)
committerCheney Ni <cheneyni@google.com>
Thu, 20 May 2021 08:41:29 +0000 (16:41 +0800)
commitbb1fa6a507fda66f6c0039268477b20cac59cc77
tree0cf86a93c4cb8b70f9adbf41a684cbf95cc970de
parente7b3517d9d25308a5e4fc79dd2a48287b49666b5
BluetoothAudioHAL: Wait for A2DP not playing if receiving A2dpSuspended=true

The Upper-layer may useĀ A2dpSuspended=true parameter to inform of
stopping the A2DP playback and dropping streaming data before
establishing the SCO connection, and we have to wait for AVDTP
non-started. This helps prevent a race condition between A2DP and SCO.

Bug: 186613660
Bug: 185191975
Tag: #compatibility
Test: Making a MO / MT call manually while A2DP playing
Change-Id: I17ab9ef97b06928d092ae4bdaa697d97a5732bb0
Merged-In: I17ab9ef97b06928d092ae4bdaa697d97a5732bb0
(cherry picked from commit d93ce78e87d7e09c3410616765106f8a52262a64)
audio_bluetooth_hw/stream_apis.cc