]> git.baikalelectronics.ru Git - kernel.git/commit
media: rc: mce_kbd decoder: low timeout values cause double keydowns
authorSean Young <sean@mess.org>
Sun, 25 Mar 2018 15:45:40 +0000 (11:45 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 20 Apr 2018 13:17:43 +0000 (09:17 -0400)
commitac76d8ec72b1e1397e415f090656921f5e36a2db
tree9998236a1c2a06d1647360108450252b911347dd
parented919a6835c79db9e769ef216f345aece6dd16c3
media: rc: mce_kbd decoder: low timeout values cause double keydowns

The mce keyboard repeats pressed keys every 100ms. If the IR timeout
is set to less than that, we send key up events before the repeat
arrives, so we have key up/key down for each IR repeat.

The keyboard ends any sequence with a 0 scancode, in which case all keys
are cleared so there is no need to run the timeout timer: it only exists
for the case that the final 0 was not received.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/ir-mce_kbd-decoder.c