* [PATCH BlueZ v2] bap: Reset broadcast source stream when ISO io is lost
@ 2026-11-23 16:30 Simon Mikuda
2026-11-24 1:38 ` [BlueZ,v2] " bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Simon Mikuda @ 2026-11-23 16:30 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Simon Mikuda
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.
Assisted-by: Claude:claude-opus-5-5
---
Changes in v2:
- whitespace change
profiles/audio/bap.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 457ba5de8..3864e1722 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -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
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [BlueZ,v2] bap: Reset broadcast source stream when ISO io is lost
2026-11-23 16:30 [PATCH BlueZ v2] bap: Reset broadcast source stream when ISO io is lost Simon Mikuda
@ 2026-11-24 1:38 ` bluez.test.bot
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2026-11-24 1:38 UTC (permalink / raw)
To: linux-bluetooth, simon.mikuda
[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-24 1:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 16:30 [PATCH BlueZ v2] bap: Reset broadcast source stream when ISO io is lost Simon Mikuda
2026-11-24 1:38 ` [BlueZ,v2] " bluez.test.bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox