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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 --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;
-- 
2.45.1





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux