summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-08-07 15:31:24 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 15:59:34 +0200
commita9a249a2c997506a64eaee22f1458fda893f62a8 (patch)
treef42ca4cf769e6f42431e67348d42dd3b232df78e /include/media
parentmedia: rc: per-protocol repeat period (diff)
downloadlinux-a9a249a2c997506a64eaee22f1458fda893f62a8.tar.xz
linux-a9a249a2c997506a64eaee22f1458fda893f62a8.zip
media: cec: fix remote control passthrough
The 'Press and Hold' operation was not correctly implemented, in particular the requirement that the repeat doesn't start until the second identical keypress arrives. The REP_DELAY value also had to be adjusted (see the comment in the code) to achieve the desired behavior. The 'enabled_protocols' field was also never set, fix that too. Since CEC is a fixed protocol the driver has to set this field. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/cec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/cec.h b/include/media/cec.h
index d97aa6c32abd..60b26fc18464 100644
--- a/include/media/cec.h
+++ b/include/media/cec.h
@@ -190,6 +190,11 @@ 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