bap: Reset broadcast source stream when ISO io is lost
PATCH v2 1/1 bap: Reset broadcast source stream when ISO io is lost
When a broadcast source transport is released while its ISO connect is in flight, the late callback still moves the stream to STREAMING and the io closes right after. Nothing resets the stream, so every later Acquire() fails with "Request Acquire Reply Input/output error" and the broadcast shows as active with no BIG on air, until bluetoothd restarts.
Move such a stream back to CONFIG.
Steps to reproduce:
1. Start and stop a broadcast source (a PipeWire BAP broadcast sink node) a few times in quick succession.
2. The broadcast shows as active, but nothing is on air, and stopping and starting it again doesn't help until bluetoothd restarts.
---
Changes in v2:
- whitespace change
profiles/audio/bap.c | 7 +++++++ 1 file changed, 7 insertions(+)
profiles/audio/bap.c +7 -0
@@ -2919,6 +2919,13 @@ static void setup_io_disconnected(int cond, void *user_data)setup_io_close (setup,NULL ); +if (bt_bap_pac_get_type (setup->ep->lpac) ==BT_BAP_BCAST_SOURCE && +bt_bap_stream_get_state (setup->stream) == +BT_BAP_STREAM_STATE_STREAMING ) { +DBG ("stream %p: io lost while streaming" , setup->stream); +bt_bap_stream_disable (setup->stream, false,NULL ,NULL ); + } +bap_update_cigs (setup->ep->data); }
base-commit: 1adfe662efeff12997df9ddd0960dbd0de9c8ea7
Signature · 1 line
2.43.0
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/series/1219840/
---Test result---
Test Summary:
CheckPatch PASS 0.34 seconds GitLint PASS 0.25 seconds BuildEll PASS 12.88 seconds BluezMake PASS 195.85 seconds MakeCheck PASS 2.66 seconds MakeDistcheck PASS 103.66 seconds CheckValgrind PASS 104.41 seconds CheckSmatch PASS 178.73 seconds bluezmakeextell PASS 64.20 seconds TestFunctional PASS 901.08 seconds IncrementalBuild PASS 197.53 seconds ScanBuild PASS 664.10 seconds
https://github.com/bluez/bluez/pull/2886
---
Regards,
Linux Bluetooth