Message ID | 20250307163435.49599-1-luiz.dentz@gmail.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ,v1] client/player: Fix changing preset SDU | expand |
Hello: This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>: On Fri, 7 Mar 2025 11:34:35 -0500 you wrote: > From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> > > This fixes changing preset SDU when configuring multiple channels, the > SDU of the configuration is the one the needs to be adjusted not the > preset itself. > --- > client/player.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) Here is the summary with links: - [BlueZ,v1] client/player: Fix changing preset SDU https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=48c33d291d92 You are awesome, thank you!
diff --git a/client/player.c b/client/player.c index 17817c45a921..9d38347d6b91 100644 --- a/client/player.c +++ b/client/player.c @@ -2296,8 +2296,12 @@ static DBusMessage *endpoint_select_properties_reply(struct endpoint *ep, /* Adjust the SDU size based on the number of * locations/channels that is being requested. */ - if (channels > 1) - qos->sdu *= channels; + if (channels > 1) { + if (ep->broadcast) + cfg->qos.bcast.io_qos.sdu *= channels; + else + cfg->qos.ucast.io_qos.sdu *= channels; + } } dbus_message_iter_init_append(reply, &iter);
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> This fixes changing preset SDU when configuring multiple channels, the SDU of the configuration is the one the needs to be adjusted not the preset itself. --- client/player.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)