]> git.baikalelectronics.ru Git - kernel.git/commit
media: rc: partial revert of "media: rc: per-protocol repeat period"
authorSean Young <sean@mess.org>
Sun, 19 Nov 2017 21:57:27 +0000 (16:57 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 30 Nov 2017 09:40:23 +0000 (04:40 -0500)
commitfeaf7a6a43daf31548549c732c2c2bc09c77b431
treefb0fe160f14d29c9dba5a11a2e593279592dc50d
parentd25419e97f480e9ae073c2007e559d9252eb97f0
media: rc: partial revert of "media: rc: per-protocol repeat period"

Since commit 6a677a725334 ("media: rc: per-protocol repeat period"), most
IR protocols have a lower keyup timeout. This causes problems on the
ite-cir, which has default IR timeout of 200ms.

Since the IR decoders read the trailing space, with a IR timeout of 200ms,
the last keydown will have at least a delay of 200ms. This is more than
the protocol timeout of e.g. rc-6 (which is 164ms). As a result the last
IR will be interpreted as a new keydown event, and we get two keypresses.

Revert the protocol timeout to 250ms, except for cec which needs a timeout
of 550ms.

Fixes: 6a677a725334 ("media: rc: per-protocol repeat period")
Cc: <stable@vger.kernel.org> # 4.14
Reported-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Sean Young <sean@mess.org>
Tested-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/rc-main.c