diff mbox series

[BlueZ,v1,10/11] shared/bap: Fix not sending ASE Notication in case of Metadata update

Message ID 20250404193959.359008-11-luiz.dentz@gmail.com
State New
Headers show
Series BAP Server test cases | expand

Commit Message

Luiz Augusto von Dentz April 4, 2025, 7:39 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

Tests such if metadata update requires the server to generate ASE
notification on Update Metadata operation.
---
 src/shared/bap.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/src/shared/bap.c b/src/shared/bap.c
index 73d1b6192843..ae840c14ded1 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -2148,6 +2148,9 @@  static uint8_t stream_metadata(struct bt_bap_stream *stream, struct iovec *meta,
 	util_iov_free(stream->meta, 1);
 	stream->meta = util_iov_dup(meta, 1);
 
+	/* Force state change to the same state to update the metadata */
+	stream_set_state(stream, bt_bap_stream_get_state(stream));
+
 	return 0;
 }