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)
commit284922562b8170a030fb130ead98224f7211d1ef
tree6ffbf6c274d87cd037cd15d1417e6ec56c47240f
parent95d1544eb643847e05df06c3de252609593c9073
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 d57ea877af38 ("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