* [PATCH BlueZ 0/1] bap: Update default sync_factor
@ 2024-07-26 10:10 Vlad Pruteanu
2024-07-26 10:10 ` [PATCH BlueZ 1/1] " Vlad Pruteanu
0 siblings, 1 reply; 3+ messages in thread
From: Vlad Pruteanu @ 2024-07-26 10:10 UTC (permalink / raw)
To: linux-bluetooth
Cc: mihai-octavian.urzica, iulia.tanasescu, andrei.istodorescu,
luiz.dentz, pav, Vlad Pruteanu
Formula for extended advertising interval set by kernel for Bcast:
interval = (qos->bcast.out.interval / 1250) * qos->bcast.sync_factor;
sync_interval = interval * 4;
According to CORE SPECIFICATION Version 5.4 | Vol 4, Part E page 2451,
the extended advertising interval should be at least 0x20 (32). Thus,
interval should be at least 8. If qos->bcast.out.interval = 7500,
it follows that the sync_factor should be at least 2.
Vlad Pruteanu (1):
bap: Update default sync_factor
profiles/audio/bap.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--
2.40.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH BlueZ 1/1] bap: Update default sync_factor
2024-07-26 10:10 [PATCH BlueZ 0/1] bap: Update default sync_factor Vlad Pruteanu
@ 2024-07-26 10:10 ` Vlad Pruteanu
2024-07-26 11:41 ` bluez.test.bot
0 siblings, 1 reply; 3+ messages in thread
From: Vlad Pruteanu @ 2024-07-26 10:10 UTC (permalink / raw)
To: linux-bluetooth
Cc: mihai-octavian.urzica, iulia.tanasescu, andrei.istodorescu,
luiz.dentz, pav, Vlad Pruteanu
Formula for extended advertising interval set by kernel for Bcast:
interval = (qos->bcast.out.interval / 1250) * qos->bcast.sync_factor;
sync_interval = interval * 4;
According to CORE SPECIFICATION Version 5.4 | Vol 4, Part E page 2451,
the extended advertising interval should be at least 0x20 (32). Thus,
interval should be at least 8. If qos->bcast.out.interval = 7500,
it follows that the sync_factor should be at least 2.
---
profiles/audio/bap.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 53f430d66..ad722ebb0 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -871,7 +871,10 @@ static struct bap_setup *setup_new(struct bap_ep *ep)
/* Mark BIG and BIS to be auto assigned */
setup->qos.bcast.big = BT_ISO_QOS_BIG_UNSET;
setup->qos.bcast.bis = BT_ISO_QOS_BIS_UNSET;
- setup->qos.bcast.sync_factor = 0x01;
+ /* sync_factor should be >=2 to avoid invalid extended
+ * advertising interval value
+ */
+ setup->qos.bcast.sync_factor = 0x02;
setup->qos.bcast.sync_timeout = BT_ISO_SYNC_TIMEOUT;
setup->qos.bcast.timeout = BT_ISO_SYNC_TIMEOUT;
setup->qos_parser = setup_parse_bcast_qos;
--
2.40.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: bap: Update default sync_factor
2024-07-26 10:10 ` [PATCH BlueZ 1/1] " Vlad Pruteanu
@ 2024-07-26 11:41 ` bluez.test.bot
0 siblings, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-07-26 11:41 UTC (permalink / raw)
To: linux-bluetooth, vlad.pruteanu
[-- Attachment #1: Type: text/plain, Size: 949 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=874045
---Test result---
Test Summary:
CheckPatch PASS 0.37 seconds
GitLint PASS 0.45 seconds
BuildEll PASS 24.64 seconds
BluezMake PASS 1684.44 seconds
MakeCheck PASS 13.09 seconds
MakeDistcheck PASS 179.75 seconds
CheckValgrind PASS 253.39 seconds
CheckSmatch PASS 356.90 seconds
bluezmakeextell PASS 120.30 seconds
IncrementalBuild PASS 1451.44 seconds
ScanBuild PASS 1014.48 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-26 11:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-26 10:10 [PATCH BlueZ 0/1] bap: Update default sync_factor Vlad Pruteanu
2024-07-26 10:10 ` [PATCH BlueZ 1/1] " Vlad Pruteanu
2024-07-26 11:41 ` bluez.test.bot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.