* [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
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.