bass: Fix not setting SID for assistant objects
Luiz Augusto von Dentz
maintainerPATCH 1/1 bass: Fix not setting SID for assistant objects
From: Luiz Augusto von Dentz <[email protected]>
The assistant objects shall contain the SID so it can properly be sent with MediaAssistant.Push/BT_BASS_ADD_SRC.
--- profiles/audio/bass.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
profiles/audio/bass.c +7 -4
@@ -90,6 +90,7 @@ struct bass_assistant {struct btd_device *device;/* Broadcast source device */ struct bass_data *data;/* BASS session with peer device */ uint8_t sgrp; +uint8_t sid;uint8_t bis;uint32_t bid;struct bt_bap_qos qos;
@@ -913,6 +914,7 @@ static DBusMessage *push(DBusConnection *conn, DBusMessage *msg, params.addr_type =BT_BASS_ADDR_RANDOM ;bacpy (¶ms.addr,device_get_address (assistant->device)); + params.sid = assistant->sid;put_le24 (assistant->bid, params.bid); params.pa_sync =PA_SYNC_NO_PAST ; params.pa_interval =PA_INTERVAL_UNKNOWN ;
@@ -1069,7 +1071,7 @@ static void src_ad_search_bid(void *data, void *user_data)static struct bass_assistant *assistant_new (struct btd_adapter *adapter,struct btd_device *device,struct bass_data *data, -uint8_t sgrp,uint8_t bis,struct bt_bap_qos *qos, +uint8_t sgrp,uint8_t sid,uint8_t bis,struct bt_bap_qos *qos,struct iovec *meta,struct iovec *caps) {struct bass_assistant *assistant;
@@ -1085,6 +1087,7 @@ static struct bass_assistant *assistant_new(struct btd_adapter *adapter, assistant->device = device; assistant->data = data; assistant->sgrp = sgrp; + assistant->sid = sid; assistant->bis = bis; assistant->qos = *qos;
@@ -1100,8 +1103,8 @@ static struct bass_assistant *assistant_new(struct btd_adapter *adapter,ba2str (device_get_address (device), src_addr);ba2str (device_get_address (data->device), dev_addr); - assistant->path =g_strdup_printf ("%s/src_%s/dev_%s/bis%d" , -adapter_get_path (adapter), src_addr, dev_addr, bis); + assistant->path =g_strdup_printf ("%s/src_%s/dev_%s/sid%d/bis%d" , +adapter_get_path (adapter), src_addr, dev_addr, sid, bis);g_strdelimit (assistant->path,":" ,'_' );
@@ -1148,7 +1151,7 @@ static void bis_probe(uint8_t sid, uint8_t bis, uint8_t sgrp,DBG ("%s data %p BIS %d" , addr, data, bis); assistant =assistant_new (adapter, device, data, sgrp, - bis, qos, meta, caps); + sid, bis, qos, meta, caps); if (g_dbus_register_interface(btd_get_dbus_connection(), assistant->path,
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=967405
---Test result---
Test Summary:
CheckPatch PENDING 0.26 seconds GitLint PENDING 0.30 seconds BuildEll PASS 20.23 seconds BluezMake PASS 2664.28 seconds MakeCheck PASS 20.77 seconds MakeDistcheck PASS 199.12 seconds CheckValgrind PASS 283.47 seconds CheckSmatch PASS 317.76 seconds bluezmakeextell PASS 131.19 seconds IncrementalBuild PENDING 0.24 seconds ScanBuild PASS 945.53 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 7 lines · On Thu, 29 May 2025 13:43:49 -0400 you wrote:
From: Luiz Augusto von Dentz <[email protected]>
The assistant objects shall contain the SID so it can properly be sent with MediaAssistant.Push/BT_BASS_ADD_SRC.
--- profiles/audio/bass.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
Here is the summary with links:
- [BlueZ,v1] bass: Fix not setting SID for assistant objects
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=a805bae3dbc2
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html