diff mbox series

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

Message ID 20240528160320.103845-2-silviu.barbulescu@nxp.com (mailing list archive)
State Accepted
Commit 60b482c3c9baaee92fe34384db5211e7fe951e50
Headers show
Series Transport: Update bcast sink transport state to pending | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/BuildEll success Build ELL PASS
tedd_an/BluezMake success Bluez Make PASS
tedd_an/MakeCheck success Bluez Make Check PASS
tedd_an/MakeDistcheck success Make Distcheck PASS
tedd_an/CheckValgrind success Check Valgrind PASS
tedd_an/CheckSmatch success CheckSparse PASS
tedd_an/bluezmakeextell success Make External ELL PASS
tedd_an/IncrementalBuild success Incremental Build PASS
tedd_an/ScanBuild success Scan Build PASS

Commit Message

Silviu Florian Barbulescu May 28, 2024, 4:03 p.m. UTC
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(-)

Comments

bluez.test.bot@gmail.com May 28, 2024, 5:41 p.m. UTC | #1
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=856629

---Test result---

Test Summary:
CheckPatch                    PASS      0.47 seconds
GitLint                       PASS      0.33 seconds
BuildEll                      PASS      25.04 seconds
BluezMake                     PASS      1640.24 seconds
MakeCheck                     PASS      13.57 seconds
MakeDistcheck                 PASS      177.89 seconds
CheckValgrind                 PASS      251.92 seconds
CheckSmatch                   PASS      354.42 seconds
bluezmakeextell               PASS      120.12 seconds
IncrementalBuild              PASS      1436.54 seconds
ScanBuild                     PASS      1025.86 seconds



---
Regards,
Linux Bluetooth
diff mbox series

Patch

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;