diff mbox series

[BlueZ,3/4] bap: call explicitly bt_bap_stream_bcast_configured when needed

Message ID e3487e9ed13bbc5d833dad9a6f718f5fb1035007.1699802164.git.pav@iki.fi
State New
Headers show
Series [BlueZ,1/4] shared/bap: add bt_bap_stream_config_update for updating QoS choice | expand

Commit Message

Pauli Virtanen Nov. 12, 2023, 4 p.m. UTC
Finishing bcast configuration is no longer a side effect of
set_user_data.
---
 profiles/audio/bap.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 780dff412..85532b1af 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -854,6 +854,7 @@  static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg,
 	}
 
 	bt_bap_stream_set_user_data(ep->stream, ep->path);
+	bt_bap_stream_bcast_configured(ep->stream);
 
 	if (ep->metadata && ep->metadata->iov_len)
 		bt_bap_stream_metadata(ep->stream, ep->metadata, NULL, NULL);
@@ -959,6 +960,7 @@  static void iso_bcast_confirm_cb(GIOChannel *io, GError *err, void *user_data)
 	data->listen_io = io;
 
 	bt_bap_stream_set_user_data(ep->stream, ep->path);
+	bt_bap_stream_bcast_configured(ep->stream);
 
 	fd = g_io_channel_unix_get_fd(io);
 
@@ -1200,6 +1202,7 @@  static void bap_config(void *data, void *user_data)
 	}
 
 	bt_bap_stream_set_user_data(ep->stream, ep->path);
+	bt_bap_stream_bcast_configured(ep->stream);
 }
 
 static void select_cb(struct bt_bap_pac *pac, int err, struct iovec *caps,