All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/4] BAP broadcast fixes
@ 2026-04-17  8:48 Michal Dzik
  2026-04-17  8:48 ` [PATCH BlueZ 1/4] transport: allow setting Metadata property on broadcast Michal Dzik
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Michal Dzik @ 2026-04-17  8:48 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Michal Dzik

Those are some fixes I did when working with BAP broadcast receiver.

Michal Dzik (4):
  transport: allow setting Metadata property on broadcast
  shared/bap: run callback after setting the broadcast metadata
  audio/bap: fill BIG and BIS for receiver
  audio: update QoS dbus property after it is set

 profiles/audio/bap.c       | 5 ++++-
 profiles/audio/transport.c | 9 +++++++--
 src/shared/bap.c           | 3 +++
 3 files changed, 14 insertions(+), 3 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH BlueZ v2 1/4] transport: allow setting Metadata property on broadcast
@ 2026-04-17 11:29 Michal Dzik
  2026-04-17 12:27 ` BAP broadcast fixes bluez.test.bot
  0 siblings, 1 reply; 7+ messages in thread
From: Michal Dzik @ 2026-04-17 11:29 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Michal Dzik

Also fixes a problem where 64-bit iov_len was incorrectly initialized with
32-bit value in dbus_message_iter_get_fixed_array().
---
 profiles/audio/transport.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index d9feef768..81a63c365 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -1336,6 +1336,7 @@ static void set_metadata(const GDBusPropertyTable *property,
 	struct bap_transport *bap = transport->data;
 	DBusMessageIter array;
 	struct iovec iov;
+	int len;
 	int ret;
 
 	if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_ARRAY) {
@@ -1347,7 +1348,8 @@ static void set_metadata(const GDBusPropertyTable *property,
 
 	dbus_message_iter_recurse(iter, &array);
 	dbus_message_iter_get_fixed_array(&array, &iov.iov_base,
-					(int *)&iov.iov_len);
+					&len);
+	iov.iov_len = len;
 
 	ret = bt_bap_stream_metadata(bap->stream, &iov, bap_metadata_complete,
 				     UINT_TO_PTR(id));
@@ -1614,7 +1616,7 @@ static const GDBusPropertyTable transport_bap_bc_properties[] = {
 	{ "QoS", "a{sv}", get_bcast_qos, set_bcast_qos, qos_bcast_exists },
 	{ "Endpoint", "o", get_endpoint, NULL, endpoint_exists },
 	{ "Location", "u", get_location },
-	{ "Metadata", "ay", get_metadata },
+	{ "Metadata", "ay", get_metadata, set_metadata },
 	{ "Links", "ao", get_links, set_links, NULL },
 	{ }
 };
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-04-17 12:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-17  8:48 [PATCH BlueZ 0/4] BAP broadcast fixes Michal Dzik
2026-04-17  8:48 ` [PATCH BlueZ 1/4] transport: allow setting Metadata property on broadcast Michal Dzik
2026-04-17 10:40   ` BAP broadcast fixes bluez.test.bot
2026-04-17  8:48 ` [PATCH BlueZ 2/4] shared/bap: run callback after setting the broadcast metadata Michal Dzik
2026-04-17  8:48 ` [PATCH BlueZ 3/4] audio/bap: fill BIG and BIS for receiver Michal Dzik
2026-04-17  8:48 ` [PATCH BlueZ 4/4] audio: update QoS dbus property after it is set Michal Dzik
  -- strict thread matches above, loose matches on Subject: below --
2026-04-17 11:29 [PATCH BlueZ v2 1/4] transport: allow setting Metadata property on broadcast Michal Dzik
2026-04-17 12:27 ` BAP broadcast fixes bluez.test.bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.