a2dp audio from phone stops working after pausing and then resuming again
Bluetooth Radio, Bluetooth Headset, Desktop Environment, Distribution, Version (Bluez, Kernel, and PipeWire):
Distribution: ArchLinux
DE: Plasma 5.21.4
Kernel: 5.11.15-xanmod1
Bluez: 5.58
Pipewire: 0.3.25.r131.gc70a5de5 (master)
Phone: Google Pixel 3a
Description of Problem: Audio from my phone connected via Bluetooth cuts out after pausing and then resuming. Found an easy way to reliably reproduce this with Spotify. Although this does happen with other things. I first noticed this, while watching some videos in my messenger. A few seconds into the second video, the audio just stopped.
Looking at the logs, when the audio cuts out this happens in the media-session
[D][000006586.934891][bluez5-dbus.c:3514 filter_cb()] Properties changed in transport /org/bluez/hci0/dev_58_CB_52_84_7A_FF/fd6
[D][000006586.934969][bluez5-dbus.c:1813 transport_update_props()] transport 0x56137a3b9130: State=idle
[D][000006586.935005][bluez5-dbus.c:1498 spa_bt_transport_set_state()] transport 0x56137a3b9130: /org/bluez/hci0/dev_58_CB_52_84_7A_FF/fd6 state changed 1 -> 0
[D][000006586.935036][bluez5-device.c:421 dynamic_node_transport_state_changed()] transport 0x56137a3b9130 state 1->0
while on the android side, this comes up in the logs
04-21 14:11:23.773 15545 15573 D A2dpNativeInterface: onAudioStateChanged: A2dpStackEvent {type:EVENT_TYPE_AUDIO_STATE_CHANGED, device:98:3B:8F:6C:B7:C1, value1:REMOTE_SUSPEND}
04-21 14:11:23.774 15545 15644 D A2dpStateMachine: handleMessage: E msg.what=101
04-21 14:11:23.774 15545 15644 D A2dpStateMachine: processMsg: Connected
04-21 14:11:23.774 15545 15644 D A2dpStateMachine: Connected process message(98:3B:8F:6C:B7:C1): STACK_EVENT
04-21 14:11:23.774 15545 15644 D A2dpStateMachine: Connected: stack event: A2dpStackEvent {type:EVENT_TYPE_AUDIO_STATE_CHANGED, device:98:3B:8F:6C:B7:C1, value1:REMOTE_SUSPEND}
04-21 14:11:23.775 15545 15644 I A2dpStateMachine: Connected: stopped playing: 98:3B:8F:6C:B7:C1
04-21 14:11:23.775 15545 15644 D A2dpStateMachine: A2DP Playing state : device: 98:3B:8F:6C:B7:C1 State:PLAYING->NOT_PLAYING
04-21 14:11:23.781 15545 15644 D A2dpStateMachine: handleMessage: X
Steps to Reproduce:
- Connect phone via Bt A2DP with PC
- Start playing music
- Pause music in Spotify and wait a few seconds
- Resume music in Spotify
Actual Results:
Audio start playing for a few seconds and then cuts out completely
Expected Result:
Audio keeps playing
Additional Info Eg. Additional Kernel Patches, pw-dump -N > file
(As Attachment Please):