[media] cec: add CEC_LOG_ADDRS_FL_ALLOW_UNREG_FALLBACK flag
authorHans Verkuil <hansverk@cisco.com>
Wed, 10 Aug 2016 12:24:45 +0000 (09:24 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 22 Aug 2016 17:00:51 +0000 (14:00 -0300)
commitdcceb1eaf210096831b14471bc87678375b086ed
tree46cd68a00af70163b3eb7a62a86b43e3e7aaa69e
parent277f963cea4ec87144c6713377322fe3bf172a5e
[media] cec: add CEC_LOG_ADDRS_FL_ALLOW_UNREG_FALLBACK flag

Currently if none of the requested logical addresses can be claimed, the
framework will fall back to the Unregistered logical address.

Add a flag to enable this explicitly. By default it will just go back to
the unconfigured state.

Usually Unregistered is not something you want since the functionality is
very limited. Unless the application has support for this, it will fail
to work correctly. So require that the application explicitly requests
this.

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/cec-adap.c
drivers/staging/media/cec/cec-api.c
include/linux/cec.h