* [PATCH BlueZ v1] bass: Fix not setting SID for assistant objects
@ 2025-05-29 17:43 Luiz Augusto von Dentz
2025-05-29 19:07 ` [BlueZ,v1] " bluez.test.bot
2025-05-29 19:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2025-05-29 17:43 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
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(-)
diff --git a/profiles/audio/bass.c b/profiles/audio/bass.c
index 417b7b72ff9b..2d4a86619ed8 100644
--- a/profiles/audio/bass.c
+++ b/profiles/audio/bass.c
@@ -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,
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* RE: [BlueZ,v1] bass: Fix not setting SID for assistant objects
2025-05-29 17:43 [PATCH BlueZ v1] bass: Fix not setting SID for assistant objects Luiz Augusto von Dentz
@ 2025-05-29 19:07 ` bluez.test.bot
2025-05-29 19:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2025-05-29 19:07 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ v1] bass: Fix not setting SID for assistant objects
2025-05-29 17:43 [PATCH BlueZ v1] bass: Fix not setting SID for assistant objects Luiz Augusto von Dentz
2025-05-29 19:07 ` [BlueZ,v1] " bluez.test.bot
@ 2025-05-29 19:40 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2025-05-29 19:40 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Thu, 29 May 2025 13:43:49 -0400 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> 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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-29 19:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29 17:43 [PATCH BlueZ v1] bass: Fix not setting SID for assistant objects Luiz Augusto von Dentz
2025-05-29 19:07 ` [BlueZ,v1] " bluez.test.bot
2025-05-29 19:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox