profiles: Update transport Links property on state change to QoS
authorFrédéric Danis <frederic.danis@collabora.com>
Fri, 26 Aug 2022 10:00:34 +0000 (12:00 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
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.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/transport.c

index 2a8347e..9195454 100644 (file)
@@ -1415,6 +1415,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: