]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cec: add flag to cec_log_addrs to enable RC passthrough
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 1 Nov 2016 09:59:34 +0000 (07:59 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 17:32:07 +0000 (15:32 -0200)
commite9922648e70990ae42f52879ca16838a7266cd41
tree38d7647eccf2816cd437dca90ad330e111989d2b
parent353e5633e2056cdbbe3e7abbaa855edc0c7e77e0
[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>
Documentation/media/uapi/cec/cec-ioc-adap-g-log-addrs.rst
drivers/staging/media/cec/TODO
drivers/staging/media/cec/cec-adap.c
drivers/staging/media/cec/cec-api.c
include/linux/cec.h