bap: Fix not responding to SetConfiguration
Luiz Augusto von Dentz
maintainerPATCH 1/1 bap: Fix not responding to SetConfiguration
From: Luiz Augusto von Dentz <[email protected]>
For broadcast the SetConfiguration would call setup_config which were not calling the callback so no reply was generated which brakes the likes of client/script/broadcast-source.bt as endpoint.config would not complete without a reply.
--- profiles/audio/bap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
profiles/audio/bap.c +2 -2
@@ -1170,6 +1170,7 @@ static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg, cbdata = new0(struct set_configuration_data, 1); cbdata->setup = setup; + cbdata->msg =dbus_message_ref (msg);if (setup_config (setup, set_configuration_ready, cbdata)) {DBG ("Unable to config stream" );
@@ -1178,8 +1179,6 @@ static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg,return btd_error_invalid_args (msg); } - cbdata->msg =dbus_message_ref (msg); -switch (bt_bap_stream_get_type (setup->stream)) {case BT_BAP_STREAM_TYPE_BCAST :if (ep->data->service)
@@ -1776,6 +1775,7 @@ static int setup_config(struct bap_setup *setup, bap_setup_ready_func_t cb,case BT_BAP_STREAM_TYPE_BCAST :/* Broadcast does not call the callback */ setup->id =0 ; +cb (setup,0 ,0 , user_data);break ; }
Signature · 1 line
2.49.0
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=970499
---Test result---
Test Summary:
CheckPatch PENDING 0.24 seconds GitLint PENDING 0.28 seconds BuildEll PASS 20.07 seconds BluezMake PASS 2755.53 seconds MakeCheck PASS 20.47 seconds MakeDistcheck PASS 200.47 seconds CheckValgrind PASS 277.33 seconds CheckSmatch PASS 305.07 seconds bluezmakeextell PASS 128.91 seconds IncrementalBuild PENDING 0.29 seconds ScanBuild PASS 939.37 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 8 lines · On Tue, 10 Jun 2025 14:50:18 -0400 you wrote:
From: Luiz Augusto von Dentz <[email protected]>
For broadcast the SetConfiguration would call
setup_configwhich were not calling the callback so no reply was generated which brakes the likes of client/script/broadcast-source.bt as endpoint.config would not complete without a reply.[...]
Here is the summary with links:
- [BlueZ,v1] bap: Fix not responding to SetConfiguration
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=95b72bbf1fe4
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html