[PATCH BlueZ 1/1] Transport: Update bcast sink transport state to pending

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

 



Once the broadcast source is detected and a transport is created
for a BIS that has the configuration supported by the broadcast
sink, this transport must be set in the pending state so the
sound server know this transport has data available.

---
 profiles/audio/transport.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index 159fbd575..5b11bfeb6 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -1624,7 +1624,10 @@ static void bap_state_changed(struct bt_bap_stream *stream, uint8_t old_state,
 			bap_update_qos(transport);
 		else if (bt_bap_stream_io_dir(stream) != BT_BAP_BCAST_SOURCE)
 			bap_update_bcast_qos(transport);
-		transport_update_playing(transport, FALSE);
+		if (bt_bap_stream_io_dir(stream) == BT_BAP_BCAST_SOURCE)
+			transport_update_playing(transport, TRUE);
+		else
+			transport_update_playing(transport, FALSE);
 		return;
 	case BT_BAP_STREAM_STATE_DISABLING:
 		return;
-- 
2.40.1





[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