]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] cec: allow specific messages even when unconfigured
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 10 Feb 2017 15:02:31 +0000 (13:02 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 22 Mar 2017 14:11:17 +0000 (11:11 -0300)
commit533a3f7bc7919f8f5462d6b921532cf1d1ccf6cd
tree4873aeebb01cdfa84504bacd748b47acbe950398
parentb39f93efc698fadc94a5fa273798f9e317089c72
[media] cec: allow specific messages even when unconfigured

The CEC specifications explicitly allows you to send poll messages and
Image/Text View On messages to a TV, even when unconfigured (i.e. there is
no hotplug signal detected). Some TVs will pull the HPD low when switching
to another input, or when going into standby, but CEC should still be
allowed to wake up such a display.

Add support for sending messages with initiator 0xf (Unregistered) and
destination 0 (TV) when no physical address is present.

This also required another change: the CEC adapter has to stay enabled as
long as 1) the CEC device is configured or 2) at least one filehandle is open
for the CEC device.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-adap.c
drivers/media/cec/cec-api.c