aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSilviu Florian Barbulescu <silviu.barbulescu@nxp.com>2024-02-15 23:23:52 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-02-20 14:10:56 -0500
commita16c2ccf9c256285188f4549b7b767cf31b100eb (patch)
treee40c6d89d86c5b3e835d9110ecf37833a461a2ee
parent5629f4784a4dfb1a3c708aca252f6f9319286807 (diff)
shared/bap: Generate one BIS BASE for
Generate single BIS BASE for a config with BIG ID 0xFF
-rw-r--r--src/shared/bap.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/shared/bap.c b/src/shared/bap.c
index 4cc81844f1..f5fc140270 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -6094,11 +6094,16 @@ struct iovec *bt_bap_stream_get_base(struct bt_bap_stream *stream)
base.next_bis_index = 1;
base.big_id = stream->qos.bcast.big;
- /*
- * Create subgroups with each different Metadata and Codec
- * Specific Configuration from all streams having the same BIG ID.
+ /* If the BIG ID was explicitly set, create a BASE with information
+ * from all streams belonging to this BIG. Otherwise, create a BASE
+ * with only this BIS.
*/
- queue_foreach(stream->bap->streams, set_base_subgroup, &base);
+ if (stream->qos.bcast.big != 0xFF)
+ queue_foreach(stream->bap->streams, set_base_subgroup, &base);
+ else {
+ base.pres_delay = stream->qos.bcast.delay;
+ set_base_subgroup(stream, &base);
+ }
base_iov = generate_base(&base);