diff mbox series

[BlueZ,v2,6/8] shared/bap: Fix not being able to reconfigure Broadcast Source

Message ID 20240201191016.1122194-6-luiz.dentz@gmail.com (mailing list archive)
State Accepted
Commit b4aae7f3d92b9301ccfb24350dfe9e84a8da71ab
Headers show
Series [BlueZ,v2,1/8] client/mgmt: Add missing settings strings | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/IncrementalBuild success Incremental Build PASS

Commit Message

Luiz Augusto von Dentz Feb. 1, 2024, 7:10 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This fixes not being able to reconfigure broadcast source due to it
being in Releasing:

bluetoothd[37]: src/shared/bap.c:stream_set_state_broadcast() stream
0x8919e0 dir 0x00: streaming -> releasing
bluetoothd[37]: profiles/audio/bap.c:setup_new() ep 0x8802d0 setup
0x88d3e0
bluetoothd[37]: src/shared/bap.c:bt_bap_stream_new() Unable to find
unused ASE
---
 src/shared/bap.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/src/shared/bap.c b/src/shared/bap.c
index ce8d35f86af3..f2d2ca09bb24 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -1379,6 +1379,7 @@  static void stream_set_state_broadcast(struct bt_bap_stream *stream,
 		break;
 	case BT_ASCS_ASE_STATE_RELEASING:
 		bap_stream_io_detach(stream);
+		stream_set_state_broadcast(stream, BT_BAP_STREAM_STATE_QOS);
 		break;
 	}