bap: Add support for Broadcast Sink AC 13
v2 cover bap: Add support for Broadcast Sink AC 13
This patch adds support for Audio Configuration 13 for a Broadcast Sink: A Broadcast Sink can synchronize to multiple BISes transmitted by a Source.
Broadcast Sink streams are selected linked together.
The bluetoothctl log below shows a Broadcast Sink detecting 2 streams from a source and selecting both of them. After the first transport is acquired, the link is created and the first transport goes active.
client/bluetoothctl
[bluetooth]# endpoint.register 00001851-0000-1000-8000-00805f9b34fb 0x06 [/local/endpoint/ep0] Auto Accept (yes/no): y [/local/endpoint/ep0] Max Transports (auto/value): a [/local/endpoint/ep0] Locations: 1
[/local/endpoint/ep0] Supported Context (value): 1 Capabilities:
03 01 ff 00 02 02 03 05 04 1a 00 f0 00 02 03 01
Metadata:
[bluetooth]# Endpoint /local/endpoint/ep0 registered [bluetooth]# scan on
[bluetooth]# [NEW] Device 17:7A:80:64:A7:93 17-7A-80-64-A7-93 [17-7A-80-64-A7-93]# [NEW] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
[17-7A-80-64-A7-93]# [NEW] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
[17-7A-80-64-A7-93]# transport.select
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0 State: broadcasting
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1 State: broadcasting
[17-7A-80-64-A7-93]# transport.acquire
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
Links: /org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
[17-7A-80-64-A7-93]# Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0 acquiring complete
[17-7A-80-64-A7-93]# Acquire successful: fd 8 MTU 40:0
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0 State: activeThe btmon log shows that sync has been established with both BISes:
< HCI Command: LE Broadcast Isochronous Group Create Sync (0x08|0x006b)
BIG Handle: 0x00
BIG Sync Handle: 0x0000
Encryption: Unencrypted (0x00)
Broadcast Code[16]: 00000000000000000000000000000000
Maximum Number Subevents: 0x00
Timeout: 20000 ms (0x07d0)
Number of BIS: 2
BIS ID: 0x01
BIS ID: 0x02Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4
LE Broadcast Isochronous Group Create Sync (0x08|0x006b) ncmd 1
Status: Success (0x00)Quoted 1 line
HCI Event: LE Meta Event (
0x3e) plen 19
LE Broadcast Isochronous Group Sync Estabilished (0x1d)
Status: Success (0x00)
BIG Handle: 0x00
Transport Latency: 0 us (0x000000)
NSE: 3
BN: 1
PTO: 1
IRC: 3
Maximum PDU: 40
ISO Interval: 10.00 msec (0x0008)
Connection Handle #0: 6
Connection Handle #1: 7
< HCI Command: LE Setup Isochronous Data Path (0x08|0x006e) plen 13
Handle: 6
Data Path Direction: Output (Controller to Host) (0x01)
Data Path: HCI (0x00)
Coding Format: Transparent (0x03)
Company Codec ID: Ericsson Technology Licensing (0)
Vendor Codec ID: 0
Controller Delay: 0 us (0x000000)
Codec Configuration Length: 0
Codec Configuration[0]:Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6
LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
Status: Success (0x00)
Handle: 6
< HCI Command: LE Setup Isochronous Data Path (0x08|0x006e) plen 13
Handle: 7
Data Path Direction: Output (Controller to Host) (0x01)
Data Path: HCI (0x00)
Coding Format: Transparent (0x03)
Company Codec ID: Ericsson Technology Licensing (0)
Vendor Codec ID: 0
Controller Delay: 0 us (0x000000)
Codec Configuration Length: 0
Codec Configuration[0]:Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6
LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
Status: Success (0x00)
Handle: 7The second transport can then be acquired and it will go straight to active, since the fd has already been set:
[17-7A-80-64-A7-93]# transport.acquire
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
Links: /org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
[17-7A-80-64-A7-93]# Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1 acquiring complete
[17-7A-80-64-A7-93]# Acquire successful: fd 9 MTU 40:0
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1 State: activeThe transports can them be released one by one:
[17-7A-80-64-A7-93]# transport.release
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
[17-7A-80-64-A7-93]# Transport fd disconnected
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0 State: idle
[17-7A-80-64-A7-93]# Release successful
[17-7A-80-64-A7-93]# transport.release
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
[17-7A-80-64-A7-93]# Transport fd disconnected
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1 State: idle[17-7A-80-64-A7-93]# Release successful
Iulia Tanasescu (14):
shared/bap: Allow multiple links per stream shared/bap: Add support for handling broadcast links shared/bap: Fix broadcast set state
shared/bap: Use enabling state for bcast sink streams
bap: Add support for syncing to multiple BISes shared/bap: Handle multiple bcast sink streams
transport: Unset transport owner before owner free
transport: Add Links property for broadcast transports doc/media: Document Links property for broadcast
transport: Set bap_update_links as transport op
transport: Make transport_bap_set_state part of BAP_OPS client/player: Handle acquiring broadcast links client/player: Add support to select multiple transports
transport: Unlink broadcast transport at release
client/player.c | 75 +++-- doc/org.bluez.MediaTransport.rst | 17 +- profiles/audio/bap.c | 180 +++++++---- profiles/audio/transport.c | 192 ++++++++++-- src/shared/bap.c | 498 +++++++++++++++++++++++++++---- src/shared/bap.h | 4 +- unit/test-bap.c | 7 +- 7 files changed, 788 insertions(+), 185 deletions(-)
base-commit: 806a552d53c787c0ddea9328a09b0ef124bca26e
Signature · 1 line
2.43.0
PATCH v2 1/14 shared/bap: Allow multiple links per stream
This commit adds support to link multiple streams together, creating the foundation for implementing broadcast links: for Broadcast Sinks, the user could select multiple streams to receive audio from. All selected streams need to be linked together and considered when creating BIG sync.
--- profiles/audio/transport.c | 38 ++++++-------- src/shared/bap.c | 104 +++++++++++++++++++++++++++++-------- src/shared/bap.h | 2 +- 3 files changed, 97 insertions(+), 47 deletions(-)
profiles/audio/transport.c +15 -23
@@ -330,12 +330,9 @@ static void transport_bap_remove_owner(struct media_transport *transport, {struct bap_transport *bap = transport->data; -if (bap && bap->linked) { -struct bt_bap_stream *link; - - link =bt_bap_stream_io_get_link (bap->stream); -linked_transport_remove_owner (link, owner); - } +if (bap && bap->linked) +queue_foreach (bt_bap_stream_io_get_links (bap->stream), + linked_transport_remove_owner, owner); }static void media_transport_remove_owner (struct media_transport *transport)
@@ -581,12 +578,9 @@ static void transport_bap_set_owner(struct media_transport *transport, {struct bap_transport *bap = transport->data; -if (bap && bap->linked) { -struct bt_bap_stream *link; - - link =bt_bap_stream_io_get_link (bap->stream); -linked_transport_set_owner (link, owner); - } +if (bap && bap->linked) +queue_foreach (bt_bap_stream_io_get_links (bap->stream), + linked_transport_set_owner, owner); } static void media_transport_set_owner(struct media_transport *transport,
@@ -1129,14 +1123,14 @@ static gboolean get_links(const GDBusPropertyTable *property, {struct media_transport *transport = data;struct bap_transport *bap = transport->data; -struct bt_bap_stream *link =bt_bap_stream_io_get_link (bap->stream); +struct queue *links =bt_bap_stream_io_get_links (bap->stream);DBusMessageIter array;dbus_message_iter_open_container (iter,DBUS_TYPE_ARRAY ,DBUS_TYPE_OBJECT_PATH_AS_STRING , &array); -append_link (link, &array); +queue_foreach (links, append_link, &array);dbus_message_iter_close_container (iter, &array);
@@ -1572,15 +1566,15 @@ static bool match_link_transport(const void *data, const void *user_data)static void bap_update_links (const struct media_transport *transport) {struct bap_transport *bap = transport->data; -struct bt_bap_stream *link =bt_bap_stream_io_get_link (bap->stream); +struct queue *links =bt_bap_stream_io_get_links (bap->stream); -if (bap->linked == (!!link)) +if (bap->linked == !queue_isempty (links))return ; - bap->linked = link ? true : false; + bap->linked = !queue_isempty (links);/* Check if the links transport has been create yet */ -if (bap->linked && !match_link_transport (link,NULL )) { +if (bap->linked && !queue_find (links, match_link_transport,NULL )) { bap->linked = false;return ; }
@@ -1757,15 +1751,13 @@ static void transport_bap_set_state(struct media_transport *transport, transport_state_t state) {struct bap_transport *bap = transport->data; -struct bt_bap_stream *link;if (!bap->linked)return ; - link =bt_bap_stream_io_get_link (bap->stream); - -/* Update link */ -link_set_state (link,UINT_TO_PTR (state)); +/* Update links */ +queue_foreach (bt_bap_stream_io_get_links (bap->stream), link_set_state, +UINT_TO_PTR (state)); } static void bap_state_changed(struct bt_bap_stream *stream, uint8_t old_state,
src/shared/bap.c +81 -23
228 lines not on this page · raw message
src/shared/bap.h +1 -1
@@ -231,7 +231,7 @@ int bt_bap_stream_cancel(struct bt_bap_stream *stream, unsigned int id);int bt_bap_stream_io_link (struct bt_bap_stream *stream,struct bt_bap_stream *link); -struct bt_bap_stream *bt_bap_stream_io_get_link (struct bt_bap_stream *stream); +struct queue *bt_bap_stream_io_get_links (struct bt_bap_stream *stream);bool bt_bap_stream_io_get_qos (struct bt_bap_stream *stream,struct bt_bap_qos **in,struct bt_bap_qos **out);
Signature · 1 line
2.43.0
PATCH v2 2/14 shared/bap: Add support for handling broadcast links
In reply to Iulia TanasescuThis commit implements io handling functions as stream ops, since broadcast links need to be handled differently than unicast:
Unicast links share the same IO, while broadcast links stand for separate BISes with independent IOs. Unicast links have different directions, while broadcast links share the same one.
This also adds a function for unlinking broadcast streams.
--- src/shared/bap.c | 336 ++++++++++++++++++++++++++++++++++++++++------- src/shared/bap.h | 2 + 2 files changed, 291 insertions(+), 47 deletions(-)
src/shared/bap.c +289 -47
@@ -252,6 +252,13 @@ struct bt_bap_stream_ops {unsigned int (*release)(struct bt_bap_stream *stream,bt_bap_stream_func_t func,void *user_data);void (*detach)(struct bt_bap_stream *stream); +bool (*set_io)(struct bt_bap_stream *stream,int fd); +struct bt_bap_stream_io * (*get_io)(struct bt_bap_stream *stream); +uint8_t (*io_dir)(struct bt_bap_stream *stream); +int (*io_link)(struct bt_bap_stream *stream, +struct bt_bap_stream *link); +int (*io_unlink)(struct bt_bap_stream *stream, +struct bt_bap_stream *link); };struct bt_bap_stream {
@@ -324,6 +331,13 @@ static struct queue *bap_db;static struct queue *bap_cbs;static struct queue *sessions; +static void bap_stream_set_io (void *data,void *user_data); +static void stream_find_io (void *data,void *user_data); +static void bap_stream_get_dir (void *data,void *user_data); +static struct bt_bap_stream_io *stream_io_ref (struct bt_bap_stream_io *io); +static int bap_bcast_io_unlink (struct bt_bap_stream *stream, +struct bt_bap_stream *link); +static bool bap_db_match (const void *data,const void *match_data) {const struct bt_bap_db *bdb = data;
@@ -2262,9 +2276,194 @@ static unsigned int bap_bcast_release(struct bt_bap_stream *stream,return 1 ; } +static bool bap_ucast_set_io (struct bt_bap_stream *stream,int fd) +{ +if (!stream || (fd >=0 && stream->io && !stream->io->connecting)) +return false; + +bap_stream_set_io (stream,INT_TO_PTR (fd)); + +queue_foreach (stream->links, bap_stream_set_io,INT_TO_PTR (fd)); + +return true; +} + +static bool bap_bcast_set_io (struct bt_bap_stream *stream,int fd) +{ +if (!stream || (fd >=0 && stream->io && !stream->io->connecting)) +return false; + +bap_stream_set_io (stream,INT_TO_PTR (fd)); + +return true; +} + +static struct bt_bap_stream_io *bap_ucast_get_io (struct bt_bap_stream *stream) +{ +struct bt_bap_stream_io *io =NULL ; + +if (!stream) +return NULL ; + +if (stream->io) +return stream->io; + +queue_foreach (stream->links, stream_find_io, &io); + +return io; +} + +static struct bt_bap_stream_io *bap_bcast_get_io (struct bt_bap_stream *stream) +{ +if (!stream) +return NULL ; + +return stream->io; +} + +static uint8_t bap_ucast_io_dir (struct bt_bap_stream *stream) +{ +uint8_t dir; + +if (!stream) +return 0x00 ; + + dir = stream->ep->dir; + +queue_foreach (stream->links, bap_stream_get_dir, &dir); + +return dir; +} + +static uint8_t bap_bcast_io_dir (struct bt_bap_stream *stream) +{ +uint8_t dir; +uint8_t pac_type =bt_bap_pac_get_type (stream->lpac); + +if (!stream) +return 0x00 ; + +if (pac_type ==BT_BAP_BCAST_SINK ) + dir =BT_BAP_BCAST_SOURCE ; +else + dir =BT_BAP_BCAST_SINK ; + +return dir; +} + +static int bap_ucast_io_link (struct bt_bap_stream *stream, +struct bt_bap_stream *link) +{ +struct bt_bap *bap; + +if (!stream || !link || stream == link) +return -EINVAL ; + + bap = stream->bap; + +if (queue_find (stream->links,NULL , link) || +queue_find (link->links,NULL , stream)) +return -EALREADY ; + +if (stream->client != link->client || + stream->qos.ucast.cig_id != link->qos.ucast.cig_id || + stream->qos.ucast.cis_id != link->qos.ucast.cis_id || + stream->ep->dir == link->ep->dir) +return -EINVAL ; + +if (!stream->links) + stream->links =queue_new (); + +if (!link->links) + link->links =queue_new (); + +queue_push_tail (stream->links, link); +queue_push_tail (link->links, stream); + +/* Link IOs if already set on stream/link */ +if (stream->io && !link->io) + link->io =stream_io_ref (stream->io); +else if (link->io && !stream->io) + stream->io =stream_io_ref (link->io); + +DBG (bap,"stream %p link %p" , stream, link); + +return 0 ; +} + +static void stream_link (void *data,void *user_data) +{ +struct bt_bap_stream *stream = (void *)data; +struct bt_bap_stream *link = (void *)user_data; + +bt_bap_stream_io_link (stream, link); +} + +static int bap_bcast_io_link (struct bt_bap_stream *stream, +struct bt_bap_stream *link) +{ +struct bt_bap *bap; + +if (!stream || !link || stream == link) +return -EINVAL ; + + bap = stream->bap; + +if (queue_find (stream->links,NULL , link) || +queue_find (link->links,NULL , stream)) +return -EALREADY ; + +if (!stream->links) + stream->links =queue_new (); + +if (!link->links) + link->links =queue_new (); + +queue_push_tail (stream->links, link); +queue_push_tail (link->links, stream); + +DBG (bap,"stream %p link %p" , stream, link); + +queue_foreach (stream->links, stream_link, link); + +return 0 ; +} + +static void stream_unlink (void *data,void *user_data) +{ +struct bt_bap_stream *stream = (void *)data; +struct bt_bap_stream *link = (void *)user_data; + +bap_bcast_io_unlink (stream, link); +} + +static int bap_bcast_io_unlink (struct bt_bap_stream *stream, +struct bt_bap_stream *link) +{ +struct bt_bap *bap; + +if (!stream || !link || stream == link) +return -EINVAL ; + + bap = stream->bap; + +if (!queue_find (stream->links,NULL , link) || + !queue_find (link->links,NULL , stream)) +return -EALREADY ; + +queue_remove (stream->links, link); +queue_remove (link->links, stream); + +DBG (bap,"stream %p unlink %p" , stream, link); + +queue_foreach (stream->links, stream_unlink, link); + +return 0 ; +} +#define STREAM_OPS (_type, _set_state, _get_state, _config, _qos, _enable, \ _start, _disable, _stop, _metadata, _get_dir, _get_loc, _release, \ - _detach) \ + _detach, _set_io, _get_io, _io_dir, _io_link, _io_unlink) \ { \ .type = _type, \ .set_state = _set_state, \
@@ -2280,6 +2479,11 @@ static unsigned int bap_bcast_release(struct bt_bap_stream *stream, .get_loc = _get_loc, \ .release = _release, \ .detach = _detach, \ + .set_io = _set_io, \ + .get_io = _get_io, \ + .io_dir = _io_dir, \ + .io_link = _io_link, \ + .io_unlink = _io_unlink, \ }static const struct bt_bap_stream_ops stream_ops[] = {
@@ -2289,28 +2493,40 @@ static const struct bt_bap_stream_ops stream_ops[] = { bap_ucast_start, bap_ucast_disable, bap_ucast_stop, bap_ucast_metadata, bap_ucast_get_dir, bap_ucast_get_location, - bap_ucast_release, bap_ucast_detach), + bap_ucast_release, bap_ucast_detach, + bap_ucast_set_io, bap_ucast_get_io, + bap_ucast_io_dir, bap_ucast_io_link, + NULL),STREAM_OPS (BT_BAP_SOURCE ,bap_ucast_set_state ,bap_ucast_get_state ,bap_ucast_config ,bap_ucast_qos ,bap_ucast_enable ,bap_ucast_start ,bap_ucast_disable ,bap_ucast_stop ,bap_ucast_metadata ,bap_ucast_get_dir ,bap_ucast_get_location , -bap_ucast_release ,bap_ucast_detach ), +bap_ucast_release ,bap_ucast_detach , +bap_ucast_set_io ,bap_ucast_get_io , +bap_ucast_io_dir ,bap_ucast_io_link , +NULL ),STREAM_OPS (BT_BAP_BCAST_SINK ,bap_bcast_set_state ,bap_bcast_get_state ,bap_bcast_config ,bap_bcast_qos ,bap_bcast_sink_enable ,bap_bcast_start ,bap_bcast_disable ,NULL ,bap_bcast_metadata ,bap_bcast_sink_get_dir ,bap_bcast_get_location , -bap_bcast_release ,bap_bcast_sink_detach ), +bap_bcast_release ,bap_bcast_sink_detach , +bap_bcast_set_io ,bap_bcast_get_io , +bap_bcast_io_dir ,bap_bcast_io_link , +bap_bcast_io_unlink ),STREAM_OPS (BT_BAP_BCAST_SOURCE ,bap_bcast_set_state ,bap_bcast_get_state ,bap_bcast_config ,bap_bcast_qos ,bap_bcast_src_enable ,bap_bcast_start ,bap_bcast_disable ,NULL ,bap_bcast_metadata ,bap_bcast_src_get_dir ,bap_bcast_get_location , - bap_bcast_release, bap_bcast_src_detach), +bap_bcast_release ,bap_bcast_src_detach , +bap_bcast_set_io ,bap_bcast_get_io , +bap_bcast_io_dir ,bap_bcast_io_link , + bap_bcast_io_unlink), }; static const struct bt_bap_stream_ops *
@@ -2396,15 +2612,23 @@ static void stream_find_io(void *data, void *user_data)static struct bt_bap_stream_io *stream_get_io (struct bt_bap_stream *stream) { -struct bt_bap_stream_io *io =NULL ; +struct bt_bap_stream_io *io; +struct bt_bap *bap; -if (!stream) +if (!bap_stream_valid (stream))return NULL ; -if (stream->io) -return stream->io; +if (!stream->ops || !stream->ops->get_io) +return NULL ; -queue_foreach (stream->links, stream_find_io, &io); +if (!bt_bap_ref_safe (stream->bap)) +return NULL ; + + bap = stream->bap; + + io = stream->ops->get_io (stream); + +bt_bap_unref (bap);return io; }
@@ -5888,14 +6112,25 @@ static bool stream_io_disconnected(struct io *io, void *user_data)bool bt_bap_stream_set_io (struct bt_bap_stream *stream,int fd) { -if (!stream || (fd >=0 && stream->io && !stream->io->connecting)) +bool ret; +struct bt_bap *bap; + +if (!bap_stream_valid (stream))return false; -bap_stream_set_io (stream,INT_TO_PTR (fd)); +if (!stream->ops || !stream->ops->set_io) +return false; -queue_foreach (stream->links, bap_stream_set_io,INT_TO_PTR (fd)); +if (!bt_bap_ref_safe (stream->bap)) +return false; -return true; + bap = stream->bap; + + ret = stream->ops->set_io (stream, fd); + +bt_bap_unref (bap); + +return ret; }static bool match_req_id (const void *data,const void *match_data)
@@ -5941,41 +6176,49 @@ int bt_bap_stream_cancel(struct bt_bap_stream *stream, unsigned int id)int bt_bap_stream_io_link (struct bt_bap_stream *stream,struct bt_bap_stream *link) { +int ret;struct bt_bap *bap; -if (!stream || !link || stream == link) +if (!bap_stream_valid (stream)) +return -EINVAL ; + +if (!stream->ops || !stream->ops->io_link) +return -EINVAL ; + +if (!bt_bap_ref_safe (stream->bap))return -EINVAL ; bap = stream->bap; -if (queue_find (stream->links,NULL , link) || -queue_find (link->links,NULL , stream)) -return -EALREADY ; + ret = stream->ops->io_link (stream, link); -if (stream->client != link->client || - stream->qos.ucast.cig_id != link->qos.ucast.cig_id || - stream->qos.ucast.cis_id != link->qos.ucast.cis_id || - stream->ep->dir == link->ep->dir) +bt_bap_unref (bap); + +return ret; +} + +int bt_bap_stream_io_unlink (struct bt_bap_stream *stream, +struct bt_bap_stream *link) +{ +int ret; +struct bt_bap *bap; + +if (!bap_stream_valid (stream))return -EINVAL ; -if (!stream->links) - stream->links =queue_new (); +if (!stream->ops || !stream->ops->io_unlink) +return -EINVAL ; -if (!link->links) - link->links =queue_new (); +if (!bt_bap_ref_safe (stream->bap)) +return -EINVAL ; -queue_push_tail (stream->links, link); -queue_push_tail (link->links, stream); + bap = stream->bap; -/* Link IOs if already set on stream/link */ -if (stream->io && !link->io) - link->io =stream_io_ref (stream->io); -else if (link->io && !stream->io) - stream->io =stream_io_ref (link->io); + ret = stream->ops->io_unlink (stream, link); -DBG (bap,"stream %p link %p" , stream, link); +bt_bap_unref (bap); -return 0 ; +return ret; }struct queue *bt_bap_stream_io_get_links (struct bt_bap_stream *stream)
@@ -6052,23 +6295,22 @@ static void bap_stream_get_dir(void *data, void *user_data)uint8_t bt_bap_stream_io_dir (struct bt_bap_stream *stream) {uint8_t dir; +struct bt_bap *bap; -if (!stream) -return 0x00 ; +if (!bap_stream_valid (stream)) +return 0 ; -if (stream->ep) - dir = stream->ep->dir; -else { -uint8_t pac_type =bt_bap_pac_get_type (stream->lpac); +if (!stream->ops || !stream->ops->set_io) +return 0 ; -if (pac_type ==BT_BAP_BCAST_SINK ) - dir =BT_BAP_BCAST_SOURCE ; -else - dir =BT_BAP_BCAST_SINK ; +if (!bt_bap_ref_safe (stream->bap)) +return 00 ; - } + bap = stream->bap; -queue_foreach (stream->links, bap_stream_get_dir, &dir); + dir = stream->ops->io_dir (stream); + +bt_bap_unref (bap);return dir; }
src/shared/bap.h +2 -0
@@ -231,6 +231,8 @@ int bt_bap_stream_cancel(struct bt_bap_stream *stream, unsigned int id);int bt_bap_stream_io_link (struct bt_bap_stream *stream,struct bt_bap_stream *link); +int bt_bap_stream_io_unlink (struct bt_bap_stream *stream, +struct bt_bap_stream *link);struct queue *bt_bap_stream_io_get_links (struct bt_bap_stream *stream); bool bt_bap_stream_io_get_qos(struct bt_bap_stream *stream, struct bt_bap_qos **in,
Signature · 1 line
2.43.0
PATCH v2 3/14 shared/bap: Fix broadcast set state
In reply to Iulia TanasescuWhen a stream changes state, the update is notified to other drivers that registered a state changed callback. These callbacks might further change the stream state, leading to the stream being freed. To avoid use after free errors post notifications, this commit adds support to ref/unref streams, to make sure that the stream is kept alive until all processing is completed. This also updates the switch condition post notifications, to handle the stream based on its current state.
--- src/shared/bap.c | 45 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-)
src/shared/bap.c +39 -6
@@ -262,6 +262,7 @@ struct bt_bap_stream_ops { };struct bt_bap_stream { +int ref_count;struct bt_bap *bap;struct bt_bap_endpoint *ep;struct bt_bap_pac *lpac;
@@ -1204,6 +1205,17 @@ static void bap_abort_stream_req(struct bt_bap *bap,queue_remove_all (bap->reqs, match_req_stream, stream, bap_req_abort); } +static void bt_bap_stream_unref (struct bt_bap_stream *stream) +{ +if (!stream) +return ; + +if (__sync_sub_and_fetch (&stream->ref_count,1 )) +return ; + +bap_stream_free (stream); +} +static void bap_ucast_detach (struct bt_bap_stream *stream) {struct bt_bap_endpoint *ep = stream->ep;
@@ -1220,7 +1232,7 @@ static void bap_ucast_detach(struct bt_bap_stream *stream) stream->ep =NULL ; ep->stream =NULL ; -bap_stream_free (stream); +bt_bap_stream_unref (stream); }static void bap_bcast_src_detach (struct bt_bap_stream *stream)
@@ -1238,7 +1250,7 @@ static void bap_bcast_src_detach(struct bt_bap_stream *stream) stream->ep =NULL ; ep->stream =NULL ; -bap_stream_free (stream); +bt_bap_stream_unref (stream); }static void bap_bcast_sink_detach (struct bt_bap_stream *stream)
@@ -1248,7 +1260,7 @@ static void bap_bcast_sink_detach(struct bt_bap_stream *stream)queue_remove (stream->bap->streams, stream);bap_stream_clear_cfm (stream); -bap_stream_free (stream); +bt_bap_stream_unref (stream); }static bool bap_stream_io_link (const void *data,const void *user_data)
@@ -2139,6 +2151,16 @@ static unsigned int bap_ucast_release(struct bt_bap_stream *stream,return req->id; } +static struct bt_bap_stream *bt_bap_stream_ref (struct bt_bap_stream *stream) +{ +if (!stream) +return NULL ; + +__sync_fetch_and_add (&stream->ref_count,1 ); + +return stream; +} +static void bap_bcast_set_state (struct bt_bap_stream *stream,uint8_t state) {struct bt_bap *bap = stream->bap;
@@ -2147,6 +2169,8 @@ static void bap_bcast_set_state(struct bt_bap_stream *stream, uint8_t state) stream->old_state = stream->state; stream->state = state; +bt_bap_stream_ref (stream); + DBG(bap, "stream %p dir 0x%02x: %s -> %s", stream, bt_bap_stream_get_dir(stream), bt_bap_stream_statestr(stream->old_state),
@@ -2162,7 +2186,7 @@ static void bap_bcast_set_state(struct bt_bap_stream *stream, uint8_t state) }/* Post notification updates */ -switch (state) { +switch (stream->state) {case BT_ASCS_ASE_STATE_IDLE :if (stream->ops && stream->ops->detach) stream->ops->detach (stream);
@@ -2172,6 +2196,8 @@ static void bap_bcast_set_state(struct bt_bap_stream *stream, uint8_t state)stream_set_state (stream,BT_BAP_STREAM_STATE_IDLE );break ; } + +bt_bap_stream_unref (stream); }static unsigned int bap_bcast_get_state (struct bt_bap_stream *stream)
@@ -2568,7 +2594,7 @@ static struct bt_bap_stream *bap_stream_new(struct bt_bap *bap,queue_push_tail (bap->streams, stream); -return stream; +return bt_bap_stream_ref (stream); }static struct bt_bap_stream_io *stream_io_ref (struct bt_bap_stream_io *io)
@@ -4148,6 +4174,13 @@ static void bap_detached(void *data, void *user_data) cb->detached (bap, cb->user_data); } +static void bap_stream_unref (void *data) +{ +struct bt_bap_stream *stream = data; + +bt_bap_stream_unref (stream); +} +static void bap_free (void *data) {struct bt_bap *bap = data;
@@ -4166,7 +4199,7 @@ static void bap_free(void *data)queue_destroy (bap->reqs, bap_req_free);queue_destroy (bap->notify,NULL ); -queue_destroy (bap->streams, bap_stream_free); +queue_destroy (bap->streams, bap_stream_unref);free (bap); }
Signature · 1 line
2.43.0
PATCH v2 4/14 shared/bap: Use enabling state for bcast sink streams
In reply to Iulia TanasescuThis updates the stream state transition from CONFIG to ENABLING, on enable for Broadcast Sink streams. This is done to differentiate between streams discovered in the BASE after short-lived PA sync and streams that have been selected and enabled by the user.
--- profiles/audio/bap.c | 13 +++++++++---- src/shared/bap.c | 2 +- unit/test-bap.c | 7 ++++--- 3 files changed, 14 insertions(+), 8 deletions(-)
profiles/audio/bap.c +9 -4
@@ -1020,7 +1020,6 @@ static void iso_bcast_confirm_cb(GIOChannel *io, GError *err, void *user_data)free (req);if (bt_bap_stream_set_io (setup->stream, fd)) { -bt_bap_stream_start (setup->stream,NULL ,NULL );g_io_channel_set_close_on_unref (io, FALSE);return ; }
@@ -2676,13 +2675,19 @@ static void bap_state_bcast_sink(struct bt_bap_stream *stream,case BT_BAP_STREAM_STATE_CONFIG :if (!setup)break ; -if (old_state == -BT_BAP_STREAM_STATE_CONFIG ) -setup_create_io (data, setup, stream, defer);if (old_state ==BT_BAP_STREAM_STATE_STREAMING )setup_io_close (setup,NULL );break ; +case BT_BAP_STREAM_STATE_ENABLING : +/* For a Broadcast Sink, the ENABLING state suggests that +* the upper layer process requires the stream to start +* receiving audio. This state is used to differentiate +* between all configured streams and the ones that have +* been enabled by the upper layer. Create stream io. +*/ +setup_create_io (data, setup, stream, defer); +break ; } }
src/shared/bap.c +1 -1
@@ -2210,7 +2210,7 @@ static unsigned int bap_bcast_sink_enable(struct bt_bap_stream *stream,bt_bap_stream_func_t func, void *user_data) { -stream_set_state (stream ,BT_BAP_STREAM_STATE_CONFIG ); +stream_set_state (stream ,BT_BAP_STREAM_STATE_ENABLING );return 1 ; }
unit/test-bap.c +4 -3
@@ -6419,14 +6419,15 @@ static void bsnk_state_str(struct bt_bap_stream *stream, uint8_t old_state,/* Enable stream */ bt_bap_stream_enable (stream, true,NULL ,NULL ,NULL ); - }else if (old_state ==BT_BAP_STREAM_STATE_CONFIG ) { -/* Start stream */ -bt_bap_stream_start (stream,NULL ,NULL ); }else {/* Other state transitions are invalid */ tester_test_failed (); } +break ; +case BT_BAP_STREAM_STATE_ENABLING : +/* Start stream */ +bt_bap_stream_start (stream,NULL ,NULL );break ;case BT_BAP_STREAM_STATE_STREAMING :queue_foreach (data->streams, stream_count_streaming, &num);
Signature · 1 line
2.43.0
PATCH v2 5/14 bap: Add support for syncing to multiple BISes
In reply to Iulia TanasescuThis adds support for a Broadcast Sink to synchronize to multiple BISes from a Source.
BISes selected by the user need to be linked together and then enabled one by one. The first enabled stream will enqueue all its links in a request for PA and BIG sync. After BIG sync is established, the confirm callback will be called for each BIS io created in the kernel. Each fd will be set inside the corresponding link, even the links that have not yet been enabled. The enabled links will be started as soon as the fds are ready.
--- profiles/audio/bap.c | 171 +++++++++++++++++++++++++++---------------- 1 file changed, 109 insertions(+), 62 deletions(-)
profiles/audio/bap.c +109 -62
@@ -134,11 +134,13 @@ enum {struct bap_bcast_pa_req {uint8_t type;bool in_progress; +struct bap_data *bap_data;union {struct btd_service *service; -struct bap_setup *setup; +struct queue *setups; } data;unsigned int io_id;/* io_id for BIG Info watch */ +GIOChannel *io; };static struct queue *sessions;
@@ -997,27 +999,34 @@ static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg,static void iso_bcast_confirm_cb (GIOChannel *io,GError *err,void *user_data) {struct bap_bcast_pa_req *req = user_data; -struct bap_setup *setup = req->data.setup; +struct bap_setup *setup;int fd; -struct bt_bap *bt_bap =bt_bap_stream_get_session (setup->stream); -struct btd_service *btd_service =bt_bap_get_user_data (bt_bap); -struct bap_data *bap_data =btd_service_get_user_data (btd_service); +struct bap_data *bap_data = req->bap_data;DBG ("BIG Sync completed" ); -if (setup->io) { -g_io_channel_unref (setup->io); -g_io_channel_shutdown (setup->io, TRUE,NULL ); - setup->io =NULL ; - } +/* The order of the BIS fds notified from kernel corresponds +* to the order of the BISes that were enqueued before +* calling bt_io_bcast_accept. +*/ + setup =queue_pop_head (req->data.setups); -/* This device is no longer needed */ -btd_service_connecting_complete (bap_data->service,0 ); +if (queue_isempty (req->data.setups)) { +/* All fds have been notified. Mark service as connected. */ +btd_service_connecting_complete (bap_data->service,0 ); - fd =g_io_channel_unix_get_fd (io); +if (req->io) { +g_io_channel_unref (req->io); +g_io_channel_shutdown (req->io, TRUE,NULL ); + req->io =NULL ; + } -queue_remove (bap_data->adapter->bcast_pa_requests, req); -free (req); +queue_remove (bap_data->adapter->bcast_pa_requests, req); +queue_destroy (req->data.setups,NULL ); +free (req); + } + + fd =g_io_channel_unix_get_fd (io);if (bt_bap_stream_set_io (setup->stream, fd)) {g_io_channel_set_close_on_unref (io, FALSE);
@@ -2265,6 +2274,8 @@ static void setup_accept_io_broadcast(struct bap_data *data, { struct bap_bcast_pa_req *req = new0(struct bap_bcast_pa_req, 1);struct bap_adapter *adapter = data->adapter; +struct queue *links =bt_bap_stream_io_get_links (setup->stream); +const struct queue_entry *entry;/* Timer could be stopped if all other requests were treated. * Check the state of the timer and turn it on so that this request
@@ -2281,7 +2292,21 @@ static void setup_accept_io_broadcast(struct bap_data *data,*/ req->type =BAP_PA_BIG_SYNC_REQ ; req->in_progress = FALSE; - req->data.setup = setup; + req->bap_data = data; + + req->data.setups =queue_new (); + +/* Enqueue all linked setups to the request */ +queue_push_tail (req->data.setups, setup); + +for (entry =queue_get_entries (links); entry; + entry = entry->next) { +struct bt_bap_stream *stream = entry->data; + +queue_push_tail (req->data.setups, +bap_find_setup_by_stream (data, stream)); + } +queue_push_tail (adapter->bcast_pa_requests, req); }
@@ -2647,6 +2672,15 @@ static void bap_state_bcast_src(struct bt_bap_stream *stream, uint8_t old_state, } } +static bool link_enabled (const void *data,const void *match_data) +{ +struct bt_bap_stream *stream = (struct bt_bap_stream *)data; +uint8_t state =bt_bap_stream_get_state (stream); + +return ((state ==BT_BAP_STREAM_STATE_ENABLING ) || +bt_bap_stream_get_io (stream)); +} +static void bap_state_bcast_sink (struct bt_bap_stream *stream,uint8_t old_state,uint8_t new_state,void *user_data)
@@ -2684,9 +2718,19 @@ static void bap_state_bcast_sink(struct bt_bap_stream *stream,* the upper layer process requires the stream to start * receiving audio. This state is used to differentiate * between all configured streams and the ones that have -* been enabled by the upper layer. Create stream io. +* been enabled by the upper layer. +* +* Create stream io if not already created and if no +* link has been enabled or started. +* +* The first enabled link will create and set fds for +* all links. */ -setup_create_io (data, setup, stream, defer); +if (!bt_bap_stream_get_io (stream) && + !queue_find (bt_bap_stream_io_get_links (stream), + link_enabled,NULL )) +setup_create_io (data, setup, stream, defer); +break ; } }
@@ -3050,63 +3094,69 @@ static int pa_sync(struct bap_bcast_pa_req *req)return 0 ; } -static void iso_do_big_sync (GIOChannel *io,void *user_data) +static void append_setup (void *data,void *user_data) { -GError *err =NULL ; -struct bap_bcast_pa_req *req = user_data; -struct bap_setup *setup = req->data.setup; -struct bt_bap *bt_bap =bt_bap_stream_get_session (setup->stream); -struct btd_service *btd_service =bt_bap_get_user_data (bt_bap); -struct bap_data *data =btd_service_get_user_data (btd_service); -struct sockaddr_iso_bc iso_bc_addr; -struct bt_iso_qos qos; -char *path; -int bis_index =1 ; +struct bap_setup *setup = data; +struct sockaddr_iso_bc *addr = user_data; +char *path =bt_bap_stream_get_user_data (setup->stream); +int bis =1 ;int s_err;const char *strbis =NULL ; -DBG ("PA Sync done" ); - -if (setup->io) { -g_io_channel_unref (setup->io); -g_io_channel_shutdown (setup->io, TRUE,NULL ); - setup->io = io; -g_io_channel_ref (setup->io); - } - -/* TODO -* We can only synchronize with a single BIS to a BIG. -* In order to have multiple BISes targeting this BIG we need to have -* all the BISes before doing bt_io_bcast_accept. -* This request comes from a transport "Acquire" call. -* For multiple BISes in the same BIG we need to either wait for all -* transports in the same BIG to be acquired or tell when to do the -* bt_io_bcast_accept by other means -*/ - path =bt_bap_stream_get_user_data (setup->stream); - strbis =strstr (path,"/bis" ); -if (strbis ==NULL ) { +if (!strbis) {DBG ("bis index cannot be found" );return ; } - s_err =sscanf (strbis,"/bis%d" , &bis_index); + s_err =sscanf (strbis,"/bis%d" , &bis);if (s_err ==-1 ) {DBG ("sscanf error" );return ; } -DBG ("Do BIG Sync with BIS %d" , bis_index); +DBG ("Do BIG Sync with BIS %d" , bis); + + addr->bc_bis[addr->bc_num_bis] = bis; + addr->bc_num_bis++; +} + +static void setup_refresh_qos (void *data,void *user_data) +{ +struct bap_setup *setup = data; + + setup->qos = *bt_bap_stream_get_qos (setup->stream); +} + +static void iso_do_big_sync (GIOChannel *io,void *user_data) +{ +GError *err =NULL ; +struct bap_bcast_pa_req *req = user_data; +struct queue *setups = req->data.setups; +struct bap_setup *setup =queue_peek_head (setups); +struct bap_data *data = req->bap_data; +struct sockaddr_iso_bc iso_bc_addr = {0 }; +struct bt_iso_qos qos; + +DBG ("PA Sync done" ); + +if (req->io) { +g_io_channel_unref (req->io); +g_io_channel_shutdown (req->io, TRUE,NULL ); + req->io = io; +g_io_channel_ref (req->io); + } iso_bc_addr.bc_bdaddr_type =btd_device_get_bdaddr_type (data->device);memcpy (&iso_bc_addr.bc_bdaddr,device_get_address (data->device),sizeof (bdaddr_t)); - iso_bc_addr.bc_bis[0 ] = bis_index; - iso_bc_addr.bc_num_bis =1 ; -/* Refresh qos stored in setup */ - setup->qos = *bt_bap_stream_get_qos (setup->stream); +/* Append each linked BIS to the BIG sync request */ +queue_foreach (setups, append_setup, &iso_bc_addr); + +/* Refresh qos stored in setups */ +queue_foreach (setups, setup_refresh_qos,NULL ); +/* Set the user requested QOS */ memset (&qos,0 ,sizeof (qos)); qos.bcast.big = setup->qos.bcast.big;
@@ -3148,10 +3198,7 @@ static void iso_do_big_sync(GIOChannel *io, void *user_data)static void pa_and_big_sync (struct bap_bcast_pa_req *req) {GError *err =NULL ; -struct bap_setup *setup = req->data.setup; -struct bt_bap *bt_bap =bt_bap_stream_get_session (setup->stream); -struct btd_service *btd_service =bt_bap_get_user_data (bt_bap); -struct bap_data *bap_data =btd_service_get_user_data (btd_service); +struct bap_data *bap_data = req->bap_data; req->in_progress = TRUE;
@@ -3166,7 +3213,7 @@ static void pa_and_big_sync(struct bap_bcast_pa_req *req) }DBG ("Create PA sync with this source" ); - setup->io = bt_io_listen(NULL, iso_do_big_sync, req, + req->io = bt_io_listen(NULL, iso_do_big_sync, req, NULL, &err, BT_IO_OPT_SOURCE_BDADDR, btd_adapter_get_address(bap_data->adapter->adapter),
@@ -3177,7 +3224,7 @@ static void pa_and_big_sync(struct bap_bcast_pa_req *req)BT_IO_OPT_MODE ,BT_IO_MODE_ISO ,BT_IO_OPT_QOS , &bap_sink_pa_qos, BT_IO_OPT_INVALID); -if (!setup->io) { +if (!req->io) {error ("%s" , err->message);g_error_free (err); }
Signature · 1 line
2.43.0
PATCH v2 6/14 shared/bap: Handle multiple bcast sink streams
In reply to Iulia TanasescuThis adds shared/bap support for enabling and starting multiple Broadcast Sink streams. Stream enabling should fail if any other Broadcast Sink streams are in the process of enabling or have been enabled for the same source. Also, a stream that has been enabled and already has the fd set should be started on the spot.
--- src/shared/bap.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+)
src/shared/bap.c +35 -0
@@ -2195,6 +2195,12 @@ static void bap_bcast_set_state(struct bt_bap_stream *stream, uint8_t state)bap_stream_io_detach (stream);stream_set_state (stream,BT_BAP_STREAM_STATE_IDLE );break ; +case BT_ASCS_ASE_STATE_ENABLING : +if (bt_bap_stream_get_io (stream)) +/* Start stream if fd has already been set */ +bt_bap_stream_start (stream,NULL ,NULL ); + +break ; }bt_bap_stream_unref (stream);
@@ -2205,11 +2211,40 @@ static unsigned int bap_bcast_get_state(struct bt_bap_stream *stream)return stream->state; } +static bool bcast_sink_stream_enabled (const void *data,const void *match_data) +{ +struct bt_bap_stream *stream = (struct bt_bap_stream *)data; +struct bt_bap_stream *match = (struct bt_bap_stream *)match_data; +uint8_t state =bt_bap_stream_get_state (stream); + +if (stream == match) +return false; + +if (queue_find (stream->links,NULL , match)) +return false; + +/* Ignore streams that are not Broadcast Sink */ +if (bt_bap_pac_get_type (stream->lpac) !=BT_BAP_BCAST_SINK ) +return false; + +return ((state ==BT_BAP_STREAM_STATE_ENABLING ) || +bt_bap_stream_get_io (stream)); +} +static unsigned int bap_bcast_sink_enable (struct bt_bap_stream *stream,bool enable_links,struct iovec *data,bt_bap_stream_func_t func,void *user_data) { +struct bt_bap *bap = stream->bap; + +/* The stream cannot be enabled if there is any other +* unlinked stream for the same source that is in the +* process of enabling or that has already been started. +*/ +if (queue_find (bap->streams, bcast_sink_stream_enabled, stream)) +return 0 ; +stream_set_state (stream,BT_BAP_STREAM_STATE_ENABLING );return 1 ;
Signature · 1 line
2.43.0
PATCH v2 7/14 transport: Unset transport owner before owner free
In reply to Iulia TanasescuThis sets the transport owner back to NULL, before the owner object is freed.
--- profiles/audio/transport.c | 5 +++++ 1 file changed, 5 insertions(+)
profiles/audio/transport.c +5 -0
@@ -287,10 +287,15 @@ static void media_owner_remove(struct media_owner *owner)static void media_owner_free (struct media_owner *owner) { +struct media_transport *transport = owner->transport; +DBG ("Owner %s" , owner->name);media_owner_remove (owner); +if (transport) + transport->owner =NULL ; +g_free (owner->name);g_free (owner); }
Signature · 1 line
2.43.0
PATCH v2 8/14 transport: Add Links property for broadcast transports
In reply to Iulia TanasescuThis adds the "Links" property for broadcast transports, which allows upper layer applications to write and link transports together.
--- profiles/audio/transport.c | 62 +++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-)
profiles/audio/transport.c +61 -1
@@ -183,7 +183,8 @@ find_transport_by_bap_stream(const struct bt_bap_stream *stream)struct bap_transport *bap;if (strcasecmp (uuid,PAC_SINK_UUID ) && -strcasecmp (uuid,PAC_SOURCE_UUID )) +strcasecmp (uuid,PAC_SOURCE_UUID ) && +strcasecmp (uuid,BAA_SERVICE_UUID ))continue ; bap = transport->data;
@@ -1142,6 +1143,64 @@ static gboolean get_links(const GDBusPropertyTable *property,return TRUE; } +static struct media_transport *find_transport_by_path (const char *path) +{ +GSList *l; + +for (l = transports; l; l =g_slist_next (l)) { +struct media_transport *transport = l->data; + +if (g_str_equal (path, transport->path)) +return transport; + } + +return NULL ; +} + +static void set_links (const GDBusPropertyTable *property, +DBusMessageIter *iter, +GDBusPendingPropertySet id,void *user_data) +{ +struct media_transport *transport = user_data; +struct bap_transport *bap = transport->data; +DBusMessageIter array; + +if (dbus_message_iter_get_arg_type (iter) !=DBUS_TYPE_ARRAY ) { +g_dbus_pending_property_error (id, +ERROR_INTERFACE ".InvalidArguments" , +"Invalid arguments in method call" ); +return ; + } + +dbus_message_iter_recurse (iter, &array); + +while (dbus_message_iter_get_arg_type (&array) == +DBUS_TYPE_OBJECT_PATH ) { +struct media_transport *link; +struct bap_transport *bap_link; +const char *path; + +dbus_message_iter_get_basic (&array, &path); + + link =find_transport_by_path (path); +if (!link) { +g_dbus_pending_property_error (id, +ERROR_INTERFACE ".InvalidArguments" , +"Invalid arguments in method call" ); +return ; + } + + bap_link = link->data; + +/* Link stream */ +bt_bap_stream_io_link (bap->stream, bap_link->stream); + +dbus_message_iter_next (&array); + } + +g_dbus_pending_property_success (id); +} +static gboolean qos_ucast_exists (const GDBusPropertyTable *property,void *data) {struct media_transport *transport = data;
@@ -1295,6 +1354,7 @@ static const GDBusPropertyTable transport_bap_bc_properties[] = { { "Endpoint", "o", get_endpoint, NULL, endpoint_exists }, { "Location", "u", get_location }, { "Metadata", "ay", get_metadata }, + { "Links", "ao", get_links, set_links, NULL }, { } };
Signature · 1 line
2.43.0
PATCH v2 9/14 doc/media: Document Links property for broadcast
In reply to Iulia TanasescuThis adds the "Links" property for broadcast.
--- doc/org.bluez.MediaTransport.rst | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)
doc/org.bluez.MediaTransport.rst +16 -1
@@ -144,11 +144,26 @@ array{byte} Metadata [readwrite, ISO Only, experimental] Indicates transport Metadata. -array{object} Links [readonly, optional, ISO only, experimental] +array{object} Links [readonly, optional, CIS only, experimental] ```````````````````````````````````````````````````````````````` Linked transport objects which the transport is associated with. +array{object} Links [readwrite, BIS only, experimental] +``````````````````````````````````````````````````````` + + For a Broadcast Sink, the BIG sync procedure requires all + desired streams to be enumerated from the start and it cannot + be later reconfigured by adding or removing BISes. To avoid + terminating and recreating the BIG sync everytime a new + transport is selected for acquire, all transports selected via + Transport.Select need to be linked together. When the first + transport is acquired via Transport.Acquire, all links are + included in the BIG sync command. An acquired transport will + create and set fds for all its links. Then, each link needs + to be acquired separately, to get the fd and start receiving + audio. + dict QoS [readwrite, optional, ISO only, experimental] ``````````````````````````````````````````````````````
Signature · 1 line
2.43.0
PATCH v2 10/14 transport: Set bap_update_links as transport op
In reply to Iulia TanasescuThis implements bap_update_links as transport op, since broadcast links need to be handled differently for unicast, which only allows one link. For broadcast, the property changed signal should be emitted everytime a new link is added or removed.
--- profiles/audio/transport.c | 45 +++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 8 deletions(-)
profiles/audio/transport.c +37 -8
@@ -116,6 +116,7 @@ struct media_transport_ops {void *(*get_stream)(struct media_transport *transport);int8_t (*get_volume)(struct media_transport *transport);int (*set_volume)(struct media_transport *transport,int8_t level); +void (*update_links)(const struct media_transport *transport);GDestroyNotify destroy; };
@@ -1628,7 +1629,8 @@ static bool match_link_transport(const void *data, const void *user_data)return true; } -static void bap_update_links (const struct media_transport *transport) +static void transport_bap_update_links_uc ( +const struct media_transport *transport) {struct bap_transport *bap = transport->data;struct queue *links =bt_bap_stream_io_get_links (bap->stream);
@@ -1651,6 +1653,30 @@ static void bap_update_links(const struct media_transport *transport)DBG ("stream %p linked %s" , bap->stream, bap->linked ?"true" :"false" ); } +static void transport_bap_update_links_bc ( +const struct media_transport *transport) +{ +struct bap_transport *bap = transport->data; +struct queue *links =bt_bap_stream_io_get_links (bap->stream); + +if (!queue_isempty (links)) + bap->linked = true; +else + bap->linked = false; + +g_dbus_emit_property_changed (btd_get_dbus_connection (), transport->path, +MEDIA_TRANSPORT_INTERFACE , +"Links" ); + +DBG ("stream %p linked %s" , bap->stream, bap->linked ?"true" :"false" ); +} + +static void bap_update_links (const struct media_transport *transport) +{ +if (transport->ops && transport->ops->update_links) + transport->ops->update_links (transport); +} +static void bap_update_qos (const struct media_transport *transport) {struct bap_transport *bap = transport->data;
@@ -2105,7 +2131,7 @@ static void *transport_asha_init(struct media_transport *transport, void *data)#define TRANSPORT_OPS (_uuid, _props, _set_owner, _remove_owner, _init, \ _resume, _suspend, _cancel, _set_state, _get_stream, \ - _get_volume, _set_volume, _destroy) \ + _get_volume, _set_volume, _update_links, _destroy) \ { \ .uuid = _uuid, \ .properties = _props, \
@@ -2119,6 +2145,7 @@ static void *transport_asha_init(struct media_transport *transport, void *data) .get_stream = _get_stream, \ .get_volume = _get_volume, \ .set_volume = _set_volume, \ + .update_links = _update_links, \ .destroy = _destroy \ }
@@ -2127,22 +2154,24 @@ static void *transport_asha_init(struct media_transport *transport, void *data) transport_a2dp_resume, transport_a2dp_suspend, \ transport_a2dp_cancel, NULL, \ transport_a2dp_get_stream, transport_a2dp_get_volume, \ - _set_volume, _destroy) + _set_volume, NULL, _destroy) -#define BAP_OPS (_uuid, _props, _set_owner, _remove_owner) \ +#define BAP_OPS (_uuid, _props, _set_owner, _remove_owner, _update_links) \ TRANSPORT_OPS(_uuid, _props, _set_owner, _remove_owner,\ transport_bap_init, \ transport_bap_resume, transport_bap_suspend, \ transport_bap_cancel, transport_bap_set_state, \ - transport_bap_get_stream, NULL, NULL, \ + transport_bap_get_stream, NULL, NULL, _update_links, \ transport_bap_destroy)#define BAP_UC_OPS (_uuid) \ BAP_OPS(_uuid, transport_bap_uc_properties, \ - transport_bap_set_owner, transport_bap_remove_owner) + transport_bap_set_owner, transport_bap_remove_owner, \ + transport_bap_update_links_uc)#define BAP_BC_OPS (_uuid) \ - BAP_OPS(_uuid, transport_bap_bc_properties, NULL, NULL) + BAP_OPS(_uuid, transport_bap_bc_properties, NULL, NULL, \ + transport_bap_update_links_bc)#define ASHA_OPS (_uuid) \ TRANSPORT_OPS(_uuid, transport_asha_properties, NULL, NULL, \
@@ -2150,7 +2179,7 @@ static void *transport_asha_init(struct media_transport *transport, void *data) transport_asha_resume, transport_asha_suspend, \ transport_asha_cancel,NULL ,NULL , \ transport_asha_get_volume, transport_asha_set_volume, \ - NULL) + NULL, NULL) static const struct media_transport_ops transport_ops[] = { A2DP_OPS(A2DP_SOURCE_UUID, transport_a2dp_src_init,
Signature · 1 line
2.43.0
PATCH v2 11/14 transport: Make transport_bap_set_state part of BAP_OPS
In reply to Iulia TanasescuThis splits the transport set_state operation for unicast and broadcast, by implementing it as a transport op. Unlike unicast, broadcast transports need to be acquired/released separately, so changes in a transport state should not affect its links.
--- profiles/audio/transport.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
profiles/audio/transport.c +5 -4
@@ -2156,22 +2156,23 @@ static void *transport_asha_init(struct media_transport *transport, void *data) transport_a2dp_get_stream, transport_a2dp_get_volume, \ _set_volume, NULL, _destroy) -#define BAP_OPS (_uuid, _props, _set_owner, _remove_owner, _update_links) \ +#define BAP_OPS (_uuid, _props, _set_owner, _remove_owner, _update_links, \ + _set_state) \ TRANSPORT_OPS(_uuid, _props, _set_owner, _remove_owner,\ transport_bap_init, \ transport_bap_resume, transport_bap_suspend, \ - transport_bap_cancel, transport_bap_set_state, \ + transport_bap_cancel, _set_state, \ transport_bap_get_stream, NULL, NULL, _update_links, \ transport_bap_destroy)#define BAP_UC_OPS (_uuid) \ BAP_OPS(_uuid, transport_bap_uc_properties, \ transport_bap_set_owner, transport_bap_remove_owner, \ - transport_bap_update_links_uc) + transport_bap_update_links_uc, transport_bap_set_state)#define BAP_BC_OPS (_uuid) \ BAP_OPS(_uuid, transport_bap_bc_properties, NULL, NULL, \ - transport_bap_update_links_bc) + transport_bap_update_links_bc, NULL)#define ASHA_OPS (_uuid) \ TRANSPORT_OPS(_uuid, transport_asha_properties, NULL, NULL, \
Signature · 1 line
2.43.0
PATCH v2 12/14 client/player: Handle acquiring broadcast links
In reply to Iulia TanasescuThis adds support for acquiring linked broadacast transports: Each link should be acquired separately, unlike unicast.
--- client/player.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-)
client/player.c +16 -12
@@ -4812,13 +4812,15 @@ static void transport_set_acquiring(GDBusProxy *proxy, bool value)ep_set_acquiring (ep, proxy, value); - link =find_link_by_proxy (proxy); -if (link) { - ep =find_ep_by_transport (g_dbus_proxy_get_path (link)); -if (!ep) -return ; +if (!ep->broadcast) { + link =find_link_by_proxy (proxy); +if (link) { + ep =find_ep_by_transport (g_dbus_proxy_get_path (link)); +if (!ep) +return ; -ep_set_acquiring (ep, link, value); +ep_set_acquiring (ep, link, value); + } } }
@@ -4919,12 +4921,14 @@ static void transport_acquire(GDBusProxy *proxy, bool prompt)if (!ep ||queue_find (ep->acquiring,NULL , proxy))return ; - link =find_link_by_proxy (proxy); -if (link) { - ep =find_ep_by_transport (g_dbus_proxy_get_path (link)); -/* if link already acquiring wait it to be complete */ -if (!ep ||queue_find (ep->acquiring,NULL , link)) -return ; +if (!ep->broadcast) { + link =find_link_by_proxy (proxy); +if (link) { + ep =find_ep_by_transport (g_dbus_proxy_get_path (link)); +/* if link already acquiring wait it to be complete */ +if (!ep ||queue_find (ep->acquiring,NULL , link)) +return ; + } }if (ep->auto_accept || !prompt) {
Signature · 1 line
2.43.0
PATCH v2 13/14 client/player: Add support to select multiple transports
In reply to Iulia TanasescuThis updates transport select to link transports together before calling the "Select" method for each of them.
The bluetoothctl log below shows a Broadcast Sink detecting 2 streams from a source and selecting both of them. After the first transport is acquired, the link is created and the first transport goes active.
client/bluetoothctl
[bluetooth]# endpoint.register 00001851-0000-1000-8000-00805f9b34fb 0x06 [/local/endpoint/ep0] Auto Accept (yes/no): y [/local/endpoint/ep0] Max Transports (auto/value): a [/local/endpoint/ep0] Locations: 1
[/local/endpoint/ep0] Supported Context (value): 1 Capabilities:
03 01 ff 00 02 02 03 05 04 1a 00 f0 00 02 03 01
Metadata:
[bluetooth]# Endpoint /local/endpoint/ep0 registered [bluetooth]# scan on
[bluetooth]# [NEW] Device 17:7A:80:64:A7:93 17-7A-80-64-A7-93 [17-7A-80-64-A7-93]# [NEW] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
[17-7A-80-64-A7-93]# [NEW] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
[17-7A-80-64-A7-93]# transport.select
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0 State: broadcasting
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1 State: broadcasting
[17-7A-80-64-A7-93]# transport.acquire
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
Links: /org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
[17-7A-80-64-A7-93]# Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0 acquiring complete
[17-7A-80-64-A7-93]# Acquire successful: fd 8 MTU 40:0
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0 State: activeThe btmon log shows that sync has been established with both BISes:
< HCI Command: LE Broadcast Isochronous Group Create Sync (0x08|0x006b)
BIG Handle: 0x00
BIG Sync Handle: 0x0000
Encryption: Unencrypted (0x00)
Broadcast Code[16]: 00000000000000000000000000000000
Maximum Number Subevents: 0x00
Timeout: 20000 ms (0x07d0)
Number of BIS: 2
BIS ID: 0x01
BIS ID: 0x02Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4
LE Broadcast Isochronous Group Create Sync (0x08|0x006b) ncmd 1
Status: Success (0x00)Quoted 1 line
HCI Event: LE Meta Event (
0x3e) plen 19
LE Broadcast Isochronous Group Sync Estabilished (0x1d)
Status: Success (0x00)
BIG Handle: 0x00
Transport Latency: 0 us (0x000000)
NSE: 3
BN: 1
PTO: 1
IRC: 3
Maximum PDU: 40
ISO Interval: 10.00 msec (0x0008)
Connection Handle #0: 6
Connection Handle #1: 7
< HCI Command: LE Setup Isochronous Data Path (0x08|0x006e) plen 13
Handle: 6
Data Path Direction: Output (Controller to Host) (0x01)
Data Path: HCI (0x00)
Coding Format: Transparent (0x03)
Company Codec ID: Ericsson Technology Licensing (0)
Vendor Codec ID: 0
Controller Delay: 0 us (0x000000)
Codec Configuration Length: 0
Codec Configuration[0]:Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6
LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
Status: Success (0x00)
Handle: 6
< HCI Command: LE Setup Isochronous Data Path (0x08|0x006e) plen 13
Handle: 7
Data Path Direction: Output (Controller to Host) (0x01)
Data Path: HCI (0x00)
Coding Format: Transparent (0x03)
Company Codec ID: Ericsson Technology Licensing (0)
Vendor Codec ID: 0
Controller Delay: 0 us (0x000000)
Codec Configuration Length: 0
Codec Configuration[0]:Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6
LE Setup Isochronous Data Path (0x08|0x006e) ncmd 1
Status: Success (0x00)
Handle: 7The second transport can then be acquired and it will go straight to active, since the fd has already been set:
[17-7A-80-64-A7-93]# transport.acquire
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
Links: /org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
[17-7A-80-64-A7-93]# Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1 acquiring complete
[17-7A-80-64-A7-93]# Acquire successful: fd 9 MTU 40:0
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1 State: activeThe transports can them be released one by one:
[17-7A-80-64-A7-93]# transport.release
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0
[17-7A-80-64-A7-93]# Transport fd disconnected
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis1/fd0 State: idle
[17-7A-80-64-A7-93]# Release successful
[17-7A-80-64-A7-93]# transport.release
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1
[17-7A-80-64-A7-93]# Transport fd disconnected
[17-7A-80-64-A7-93]# [CHG] Transport
/org/bluez/hci0/dev_17_7A_80_64_A7_93/bis2/fd1 State: idle
[17-7A-80-64-A7-93]# Release successful
---
client/player.c | 47 +++++++++++++++++++++++++++++++++++++++++------
1 file changed, 41 insertions(+), 6 deletions(-)client/player.c +41 -6
@@ -5173,8 +5173,9 @@ static void set_bcode(const char *input, void *user_data)g_free (bcode); } -static void transport_select (GDBusProxy *proxy,bool prompt) +static void transport_select (void *data,void *user_data) { +GDBusProxy *proxy = data;DBusMessageIter iter, array, entry, value;unsigned char encryption;const char *key;
@@ -5220,28 +5221,62 @@ static void transport_unselect(GDBusProxy *proxy, bool prompt) } } +static void set_links_cb (const DBusError *error,void *user_data) +{ +GDBusProxy *link = user_data; + +if (dbus_error_is_set (error)) { +bt_shell_printf ("Failed to set link %s: %s\n" , +g_dbus_proxy_get_path (link), + error->name); +return bt_shell_noninteractive_quit (EXIT_FAILURE ); + } + +bt_shell_printf ("Successfully linked transport %s\n" , +g_dbus_proxy_get_path (link)); +}static void cmd_select_transport (int argc,char *argv[]) { -GDBusProxy *proxy; +GDBusProxy *proxy =NULL , *link; +struct queue *links =queue_new (); +const char *path;int i;for (i =1 ; i < argc; i++) { - proxy =g_dbus_proxy_lookup (transports,NULL , argv[i], + link =g_dbus_proxy_lookup (transports,NULL , argv[i],BLUEZ_MEDIA_TRANSPORT_INTERFACE ); -if (!proxy) { +if (!link) {bt_shell_printf ("Transport %s not found\n" , argv[i]);return bt_shell_noninteractive_quit (EXIT_FAILURE ); } -if (find_transport (proxy)) { +if (find_transport (link)) {bt_shell_printf ("Transport %s already acquired\n" , argv[i]);return bt_shell_noninteractive_quit (EXIT_FAILURE ); } -transport_select (proxy, false); +queue_push_tail (links, link); + +if (!proxy) { + proxy = link; +continue ; + } + + path =g_dbus_proxy_get_path (link); + +if (g_dbus_proxy_set_property_array (proxy,"Links" , +DBUS_TYPE_OBJECT_PATH , + &path,1 , set_links_cb, + link,NULL ) == FALSE) { +bt_shell_printf ("Linking transport %s failed\n" , + argv[i]); +return bt_shell_noninteractive_quit (EXIT_FAILURE ); + } } + +queue_foreach (links, transport_select,NULL ); }static void cmd_unselect_transport (int argc,char *argv[])
Signature · 1 line
2.43.0
PATCH v2 14/14 transport: Unlink broadcast transport at release
In reply to Iulia TanasescuThis updates broadcast transport release to unlink stream from all its links.
--- profiles/audio/transport.c | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)
profiles/audio/transport.c +39 -0
@@ -1779,10 +1779,45 @@ static guint transport_bap_resume(struct media_transport *transport,return id; } +static void update_links (void *data,void *user_data) +{ +struct bt_bap_stream *link = data; +struct media_transport *transport; + + transport =find_transport_by_bap_stream (link); +if (!transport) { +error ("Unable to find transport" ); +return ; + } + +bap_update_links (transport); +} + +static void transport_unlink (void *data,void *user_data) +{ +struct bt_bap_stream *link = data; +struct bt_bap_stream *stream = user_data; +struct media_transport *transport; + + transport =find_transport_by_bap_stream (link); +if (!transport) { +error ("Unable to find transport" ); +return ; + } + +bt_bap_stream_io_unlink (link, stream); + +bap_update_links (transport); + +/* Emit property changed for all remaining links */ +queue_foreach (bt_bap_stream_io_get_links (link), update_links,NULL ); +} +static guint transport_bap_suspend (struct media_transport *transport,struct media_owner *owner) {struct bap_transport *bap = transport->data; +struct queue *links =bt_bap_stream_io_get_links (bap->stream);bt_bap_stream_func_t func =NULL ;guint id;
@@ -1794,6 +1829,10 @@ static guint transport_bap_suspend(struct media_transport *transport,else transport_set_state (transport,TRANSPORT_STATE_IDLE ); +if (bt_bap_stream_get_type (bap->stream) ==BT_BAP_STREAM_TYPE_BCAST ) +/* Unlink stream from all its links */ +queue_foreach (links, transport_unlink, bap->stream); +bap_update_links (transport); id =bt_bap_stream_disable (bap->stream, bap->linked, func, owner);
Signature · 1 line
2.43.0
This series was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This series was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 4 lines · On Fri, 25 Oct 2024 15:21:32 +0300 you wrote:
This patch adds support for Audio Configuration 13 for a Broadcast Sink: A Broadcast Sink can synchronize to multiple BISes transmitted by a Source.
Quoted 8 lines
Broadcast Sink streams are selected linked together.
The bluetoothctl log below shows a Broadcast Sink detecting 2 streams from a source and selecting both of them. After the first transport is acquired, the link is created and the first transport goes active.
[...]
Here is the summary with links:
- [BlueZ,v2,01/14] shared/bap: Allow multiple links per stream
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=7ff51d684956 - [BlueZ,v2,02/14] shared/bap: Add support for handling broadcast links https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=85bee521c737 - [BlueZ,v2,03/14] shared/bap: Fix broadcast set state https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=71d19c6c8416 - [BlueZ,v2,04/14] shared/bap: Use enabling state for bcast sink streams https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=eaff473cd263 - [BlueZ,v2,05/14] bap: Add support for syncing to multiple BISes https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=0b5cfc1badf0 - [BlueZ,v2,06/14] shared/bap: Handle multiple bcast sink streams https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=b92b857f2fb0 - [BlueZ,v2,07/14] transport: Unset transport owner before owner free https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=47da1efdc584 - [BlueZ,v2,08/14] transport: Add Links property for broadcast transports https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=e0e3c922f715 - [BlueZ,v2,09/14] doc/media: Document Links property for broadcast https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=5b1dfd2721e2 - [BlueZ,v2,10/14] transport: Set bap_update_links as transport op https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=3bafab446636 - [BlueZ,v2,11/14] transport: Make transport_bap_set_state part of BAP_OPS https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=2ec04e02601f - [BlueZ,v2,12/14] client/player: Handle acquiring broadcast links https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=7b63fe6bd4d0 - [BlueZ,v2,13/14] client/player: Add support to select multiple transports https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=3075a9c17d16 - [BlueZ,v2,14/14] transport: Unlink broadcast transport at release https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=06c94f0ac055
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html