diff mbox series

[BlueZ,v7,6/6] profiles/asha: Use new btd connection parameters API

Message ID 20240523102929.37761-7-arun@asymptotic.io
State New
Headers show
Series ASHA plugin | expand

Commit Message

Arun Raghavan May 23, 2024, 10:29 a.m. UTC
This should set up the parameters expected by the spec / ASHA
implementation, given a kernel that supports connection parameter
updates.
---
 profiles/audio/transport.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index 7ed633e1c..84805bf64 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -1814,6 +1814,12 @@  static guint transport_asha_resume(struct media_transport *transport,
 	struct bt_asha *asha = transport->data;
 	guint ret;
 
+	btd_device_set_conn_param(transport->device,
+			0x0010 /* min interval = 1.25ms intervals => 20ms */,
+			0x0010 /* max interval = 1.25ms intervals => 20ms */,
+			0x000A /* 10 events' latency */,
+			0x0064 /* 1s timeout */);
+
 	ret = bt_asha_connect_socket(asha);
 	if (ret < 0)
 		return ret;