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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Finishing bcast configuration is no longer a side effect of
set_user_data.
---
 profiles/audio/bap.c | 3 +++
 1 file changed, 3 insertions(+)

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,
-- 
2.41.0





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux