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 a9a249a2c9
("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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
6d4a36d183
commit
57c642cb45
@@ -192,11 +192,6 @@ struct cec_adapter {
|
||||
|
||||
u32 tx_timeouts;
|
||||
|
||||
#ifdef CONFIG_MEDIA_CEC_RC
|
||||
bool rc_repeating;
|
||||
int rc_last_scancode;
|
||||
u64 rc_last_keypress;
|
||||
#endif
|
||||
#ifdef CONFIG_CEC_NOTIFIER
|
||||
struct cec_notifier *notifier;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user