]> git.baikalelectronics.ru Git - kernel.git/commit
media: rc: per-protocol repeat period and minimum keyup timer
authorSean Young <sean@mess.org>
Sat, 24 Mar 2018 12:02:48 +0000 (08:02 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 20 Apr 2018 13:16:55 +0000 (09:16 -0400)
commited919a6835c79db9e769ef216f345aece6dd16c3
tree6ffbf6c274d87cd037cd15d1417e6ec56c47240f
parent9dcd1176f0b523289d27af71cbc61f00bbeec12c
media: rc: per-protocol repeat period and minimum keyup timer

Each IR protocol has its own repeat period. We can minimise the keyup
timer to be the protocol period + IR timeout. This makes keys less
"sticky" and makes IR more reactive and nicer to use.

This feature was previously attempted in commit 6a677a725334 ("media: rc:
per-protocol repeat period"), but that did not take the IR timeout into
account, and had to be reverted.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-core.c
drivers/media/rc/lirc_dev.c
drivers/media/rc/rc-main.c