[media] cec: add proper support for CDC-Only CEC devices
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 2 Nov 2016 09:41:41 +0000 (07:41 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 17:36:03 +0000 (15:36 -0200)
commita69a168a1bd470cb8a8c5f2ff4b54463de615226
tree4c3610eea028d8f79d3e5b6139ad2e7d2bd97776
parentf5580d8d6fd07a569e468fca51f435aa5b122fc4
[media] cec: add proper support for CDC-Only CEC devices

CDC-Only CEC devices are CEC devices that can only handle CDC messages,
all other messages are ignored.

Add a flag to signal that this is a CDC-Only device and act accordingly.

Also add helper functions to identify if a CEC device is configured as a
CDC-Only device, a second TV, a switch or a processor, since these variations
cannot be determined by the logical address alone.

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