]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/media/rc/rc-main.c
media: cec: move cec autorepeat handling to rc-core
authorSean Young <sean@mess.org>
Thu, 23 Nov 2017 22:37:10 +0000 (17:37 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 14 Dec 2017 15:35:30 +0000 (10:35 -0500)
commit57c642cb45d6f7d0d950c3bc67439989062ac743
treea8bb6ccd399309d7c359917291cc58f01cbffb7f
parent6d4a36d183fe1ca051961e1e4a79853427605a01
media: cec: move cec autorepeat handling to rc-core

CEC autorepeat is different than other protocols. Autorepeat is triggered
by the first repeated user control pressed CEC message, rather than a
fixed REP_DELAY.

This change also does away with the KEY_UP event directly after the first
KEY_DOWN event, which was used to stop autorepeat from starting.

See commit a9a249a2c997 ("media: cec: fix remote control passthrough")
for the original change.

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-adap.c
drivers/media/cec/cec-core.c
drivers/media/rc/rc-main.c
include/media/cec.h
include/media/rc-core.h