From e5890fc7791d31cb861cfc6864792ab81405b6c8 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Tue, 24 Jan 2023 14:41:17 +0100 Subject: [PATCH] Bluetooth: Audio: Broadcast source reconfigure missing streaming QoS When executing the bt_audio_broadcast_source_reconfig the streams did not get assigned the new QoS, the ISO parameters were not properly updated and the codec was not set. Signed-off-by: Emil Gydesen --- subsys/bluetooth/audio/broadcast_source.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/subsys/bluetooth/audio/broadcast_source.c b/subsys/bluetooth/audio/broadcast_source.c index 2ce0905f169..f9b6a1ed14e 100644 --- a/subsys/bluetooth/audio/broadcast_source.c +++ b/subsys/bluetooth/audio/broadcast_source.c @@ -769,7 +769,15 @@ int bt_audio_broadcast_source_reconfig(struct bt_audio_broadcast_source *source, SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) { SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { + struct bt_iso_chan_io_qos *iso_qos; + + iso_qos = stream->ep->iso->chan.qos->tx; + bt_audio_stream_attach(NULL, stream, stream->ep, codec); + + bt_audio_codec_qos_to_iso_qos(iso_qos, qos); + bt_audio_codec_to_iso_path(iso_qos->path, codec); + stream->qos = qos; } }