* [PATCH BlueZ v1] bluetooth: Add BT_ISO_SYNC_TIMEOUT
@ 2024-03-07 17:01 Luiz Augusto von Dentz
2024-03-08 16:20 ` patchwork-bot+bluetooth
0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2024-03-07 17:01 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This defines BT_ISO_SYNC_TIMEOUT(20 sec) which shall be considered the
default sync_timeout and make all instance previously hardcoding a
value to use it.
---
lib/bluetooth.h | 2 ++
profiles/audio/bap.c | 6 +++---
src/shared/bass.c | 4 ++--
tools/iso-tester.c | 4 ++--
4 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index ba08c70e61b8..75dc960c83a2 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -150,6 +150,8 @@ struct bt_voice {
#define BT_ISO_QOS_BIG_UNSET 0xff
#define BT_ISO_QOS_BIS_UNSET 0xff
+#define BT_ISO_SYNC_TIMEOUT 0x07d0 /* 20 secs */
+
#define BT_ISO_QOS_GROUP_UNSET 0xff
#define BT_ISO_QOS_STREAM_UNSET 0xff
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 1b8a47c52116..1034202cb8a0 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -138,7 +138,7 @@ static struct bt_iso_qos bap_sink_pa_qos = {
.bcast = {
.options = 0x00,
.skip = 0x0000,
- .sync_timeout = 0x4000,
+ .sync_timeout = BT_ISO_SYNC_TIMEOUT,
.sync_cte_type = 0x00,
/* TODO: The following parameters are not needed for PA Sync.
* They will be removed when the kernel checks will be removed.
@@ -148,8 +148,8 @@ static struct bt_iso_qos bap_sink_pa_qos = {
.encryption = 0x00,
.bcode = {0x00},
.mse = 0x00,
- .timeout = 0x4000,
- .sync_factor = 0x07,
+ .timeout = BT_ISO_SYNC_TIMEOUT,
+ .sync_factor = 0x07,
.packing = 0x00,
.framing = 0x00,
.in = {
diff --git a/src/shared/bass.c b/src/shared/bass.c
index 3f5bf307cfdf..c30537dee744 100644
--- a/src/shared/bass.c
+++ b/src/shared/bass.c
@@ -111,10 +111,10 @@ static struct bt_iso_qos default_qos = {
.bcode = {0x00},
.options = 0x00,
.skip = 0x0000,
- .sync_timeout = 0x4000,
+ .sync_timeout = BT_ISO_SYNC_TIMEOUT,
.sync_cte_type = 0x00,
.mse = 0x00,
- .timeout = 0x4000,
+ .timeout = BT_ISO_SYNC_TIMEOUT,
}
};
diff --git a/tools/iso-tester.c b/tools/iso-tester.c
index d1f0be180c33..1864b9e9d9a2 100644
--- a/tools/iso-tester.c
+++ b/tools/iso-tester.c
@@ -264,10 +264,10 @@
.bcode = _bcode, \
.options = 0x00, \
.skip = 0x0000, \
- .sync_timeout = 0x4000, \
+ .sync_timeout = BT_ISO_SYNC_TIMEOUT, \
.sync_cte_type = 0x00, \
.mse = 0x00, \
- .timeout = 0x4000, \
+ .timeout = BT_ISO_SYNC_TIMEOUT, \
}, \
}
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH BlueZ v1] bluetooth: Add BT_ISO_SYNC_TIMEOUT
2024-03-07 17:01 [PATCH BlueZ v1] bluetooth: Add BT_ISO_SYNC_TIMEOUT Luiz Augusto von Dentz
@ 2024-03-08 16:20 ` patchwork-bot+bluetooth
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+bluetooth @ 2024-03-08 16:20 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, 7 Mar 2024 12:01:18 -0500 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> This defines BT_ISO_SYNC_TIMEOUT(20 sec) which shall be considered the
> default sync_timeout and make all instance previously hardcoding a
> value to use it.
> ---
> lib/bluetooth.h | 2 ++
> profiles/audio/bap.c | 6 +++---
> src/shared/bass.c | 4 ++--
> tools/iso-tester.c | 4 ++--
> 4 files changed, 9 insertions(+), 7 deletions(-)
Here is the summary with links:
- [BlueZ,v1] bluetooth: Add BT_ISO_SYNC_TIMEOUT
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=aa7a814690d0
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] 2+ messages in thread
end of thread, other threads:[~2024-03-08 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-07 17:01 [PATCH BlueZ v1] bluetooth: Add BT_ISO_SYNC_TIMEOUT Luiz Augusto von Dentz
2024-03-08 16:20 ` 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).