]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit67f0f15ad5c47490e19f2526f8f9cea97c5ce1a6
treefb0fe160f14d29c9dba5a11a2e593279592dc50d
parent6d33377f2abbf9f0e561b116dd468d1c3ff36a6a
media: rc: partial revert of "media: rc: per-protocol repeat period"

Since commit d57ea877af38 ("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: d57ea877af38 ("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