summaryrefslogtreecommitdiffstats
path: root/include/linux/cec.h
diff options
context:
space:
mode:
authorHans Verkuil2016-11-01 10:59:34 +0100
committerMauro Carvalho Chehab2016-11-16 18:32:07 +0100
commitf4062625ede8f0280d8246437f4070c8eb7fe9f3 (patch)
tree38d7647eccf2816cd437dca90ad330e111989d2b /include/linux/cec.h
parent[media] cec rst: convert tables and drop the 'row' comments (diff)
downloadkernel-qcow2-linux-f4062625ede8f0280d8246437f4070c8eb7fe9f3.tar.gz
kernel-qcow2-linux-f4062625ede8f0280d8246437f4070c8eb7fe9f3.tar.xz
kernel-qcow2-linux-f4062625ede8f0280d8246437f4070c8eb7fe9f3.zip
[media] cec: add flag to cec_log_addrs to enable RC passthrough
By default the CEC_MSG_USER_CONTROL_PRESSED/RELEASED messages are passed on to the follower(s) only. If the new CEC_LOG_ADDRS_FL_ALLOW_RC_PASSTHRU flag is set in the flags field of struct cec_log_addrs then these messages are also passed on to the remote control input subsystem and they will appear as keystrokes. This used to be the default behavior, but now you have to explicitly enable it. This is done to force the caller to think about possible security issues (e.g. if these messages are used to enter passwords). Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/linux/cec.h')
-rw-r--r--include/linux/cec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cec.h b/include/linux/cec.h
index 851968e803fa..825455fae3cc 100644
--- a/include/linux/cec.h
+++ b/include/linux/cec.h
@@ -391,6 +391,8 @@ struct cec_log_addrs {
/* Allow a fallback to unregistered */
#define CEC_LOG_ADDRS_FL_ALLOW_UNREG_FALLBACK (1 << 0)
+/* Passthrough RC messages to the input subsystem */
+#define CEC_LOG_ADDRS_FL_ALLOW_RC_PASSTHRU (1 << 1)
/* Events */