* [PATCH BlueZ] shared/bap: ucast streams can only have one link
@ 2024-10-26 10:13 Pauli Virtanen
2024-10-26 12:05 ` [BlueZ] " bluez.test.bot
2024-10-28 14:50 ` [PATCH BlueZ] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Pauli Virtanen @ 2024-10-26 10:13 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Pauli Virtanen
In unicast, linked streams mean bidirectional CIS. Ucast stream can
have at most one linked stream.
Fix ucast streams to have only single link. This fixes eg. configuring
for AC 11(i).
---
src/shared/bap.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/shared/bap.c b/src/shared/bap.c
index dad510aec..658ee1370 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -2422,8 +2422,7 @@ static int bap_ucast_io_link(struct bt_bap_stream *stream,
bap = stream->bap;
- if (queue_find(stream->links, NULL, link) ||
- queue_find(link->links, NULL, stream))
+ if (!queue_isempty(stream->links) || !queue_isempty(link->links))
return -EALREADY;
if (stream->client != link->client ||
--
2.47.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [BlueZ] shared/bap: ucast streams can only have one link
2024-10-26 10:13 [PATCH BlueZ] shared/bap: ucast streams can only have one link Pauli Virtanen
@ 2024-10-26 12:05 ` bluez.test.bot
2024-10-28 14:50 ` [PATCH BlueZ] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-10-26 12:05 UTC (permalink / raw)
To: linux-bluetooth, pav
[-- Attachment #1: Type: text/plain, Size: 1560 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=903408
---Test result---
Test Summary:
CheckPatch PASS 0.42 seconds
GitLint PASS 0.30 seconds
BuildEll PASS 24.63 seconds
BluezMake PASS 1662.11 seconds
MakeCheck PASS 12.86 seconds
MakeDistcheck PASS 178.70 seconds
CheckValgrind PASS 252.74 seconds
CheckSmatch WARNING 357.13 seconds
bluezmakeextell PASS 120.59 seconds
IncrementalBuild PASS 1412.18 seconds
ScanBuild PASS 1004.74 seconds
Details
##############################
Test: CheckSmatch - WARNING
Desc: Run smatch tool with source
Output:
src/shared/bap.c:296:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structuressrc/shared/bap.c:296:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structuressrc/shared/bap.c:296:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structures
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ] shared/bap: ucast streams can only have one link
2024-10-26 10:13 [PATCH BlueZ] shared/bap: ucast streams can only have one link Pauli Virtanen
2024-10-26 12:05 ` [BlueZ] " bluez.test.bot
@ 2024-10-28 14:50 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2024-10-28 14:50 UTC (permalink / raw)
To: Pauli Virtanen; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Sat, 26 Oct 2024 13:13:39 +0300 you wrote:
> In unicast, linked streams mean bidirectional CIS. Ucast stream can
> have at most one linked stream.
>
> Fix ucast streams to have only single link. This fixes eg. configuring
> for AC 11(i).
> ---
> src/shared/bap.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Here is the summary with links:
- [BlueZ] shared/bap: ucast streams can only have one link
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=c009be5c5973
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:[~2024-10-28 14:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-26 10:13 [PATCH BlueZ] shared/bap: ucast streams can only have one link Pauli Virtanen
2024-10-26 12:05 ` [BlueZ] " bluez.test.bot
2024-10-28 14:50 ` [PATCH BlueZ] " 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;
as well as URLs for NNTP newsgroup(s).