diff mbox series

[BlueZ,1/1] bap: Set bap debug func at broadcast probe

Message ID 20240919082046.7208-2-iulia.tanasescu@nxp.com (mailing list archive)
State Accepted
Commit ce6462eba2dbf310728a2ae6b10110032fb39285
Headers show
Series bap: Set bap debug func at broadcast probe | 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

Iulia Tanasescu Sept. 19, 2024, 8:20 a.m. UTC
When a Broadcast Sink acting as a Scan Delegator probes a Broadcaster with
the help of a Broadcast Assistant, a new BAP session is added for the
Broadcaster device before additional session information is initialized
(like the bt_bap session). This causes the bap debug func to not be set
in bap_data_add.

This commit adds an explicit call to set the function after the bt_bap
session is created.
---
 profiles/audio/bap.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

bluez.test.bot@gmail.com Sept. 19, 2024, 10:09 a.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=891354

---Test result---

Test Summary:
CheckPatch                    PASS      0.48 seconds
GitLint                       PASS      0.34 seconds
BuildEll                      PASS      24.11 seconds
BluezMake                     PASS      1659.41 seconds
MakeCheck                     PASS      13.50 seconds
MakeDistcheck                 PASS      181.74 seconds
CheckValgrind                 PASS      255.39 seconds
CheckSmatch                   PASS      358.33 seconds
bluezmakeextell               PASS      119.25 seconds
IncrementalBuild              PASS      1478.98 seconds
ScanBuild                     PASS      1078.56 seconds



---
Regards,
Linux Bluetooth
diff mbox series

Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 100acca57..c45717ef2 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -3243,6 +3243,9 @@  static int bap_bcast_probe(struct btd_service *service)
 		free(data);
 		return -EINVAL;
 	}
+
+	bt_bap_set_debug(data->bap, bap_debug, NULL, NULL);
+
 	data->bcast_snks = queue_new();
 
 	if (!bt_bap_attach(data->bap, NULL)) {