diff mbox series

[v3,11/11] profiles: Update transport Links property on state change to QoS

Message ID 20220827000540.113414-12-luiz.dentz@gmail.com
State New
Headers show
Series Initial BAP support | expand

Commit Message

Luiz Augusto von Dentz Aug. 27, 2022, 12:05 a.m. UTC
From: Frédéric Danis <frederic.danis@collabora.com>

Currently, the Links property is only sent after the first call to the
Acquire method, this cmay result in a rejection if a linked transport tries
to call the Acquire method before receiving the Links update.
---
 profiles/audio/transport.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index f36e609cbd7a..f233643a6a3f 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -1321,6 +1321,7 @@  static void bap_state_changed(struct bt_bap_stream *stream, uint8_t old_state,
 		/* If a request is pending wait it to complete */
 		if (owner && owner->pending)
 			return;
+		bap_update_links(transport);
 		transport_update_playing(transport, FALSE);
 		return;
 	case BT_BAP_STREAM_STATE_DISABLING: