From 853592f98f689d5755411e952f29a5255b8a7f38 Mon Sep 17 00:00:00 2001 From: Kuba Pawlak Date: Tue, 10 Feb 2015 19:19:42 +0100 Subject: [PATCH] audioo/AVCTP: Set initial key repeat timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'AVC Panel Subunit Specification' mandates that: To help the target to decide whether a pressed button is hold or not, it is recommended that the controller have capability of issuing a “release” command within 300 ms, after it receives a response to the last “press” command. The target should not judge the user operation to be “press and hold” within this 300ms.". The kernel's default timeout is currently set to 250ms with 33ms between repeats which means it will issue one repeat key before 300ms window elapses. --- profiles/audio/avctp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index d92f30460..57071b531 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1093,6 +1093,8 @@ static int uinput_create(char *name) return err; } + send_event(fd, EV_REP, REP_DELAY, 300); + return fd; } -- 2.47.3