summaryrefslogtreecommitdiffstats
path: root/include/linux/cec.h
diff options
context:
space:
mode:
authorHans Verkuil <hansverk@cisco.com>2016-08-10 09:24:45 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-22 14:00:51 -0300
commitdcceb1eaf210096831b14471bc87678375b086ed (patch)
tree46cd68a00af70163b3eb7a62a86b43e3e7aaa69e /include/linux/cec.h
parent277f963cea4ec87144c6713377322fe3bf172a5e (diff)
downloadblackbird-op-linux-dcceb1eaf210096831b14471bc87678375b086ed.tar.gz
blackbird-op-linux-dcceb1eaf210096831b14471bc87678375b086ed.zip
[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>
Diffstat (limited to 'include/linux/cec.h')
-rw-r--r--include/linux/cec.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/cec.h b/include/linux/cec.h
index b3e22893a002..851968e803fa 100644
--- a/include/linux/cec.h
+++ b/include/linux/cec.h
@@ -364,7 +364,7 @@ struct cec_caps {
* @num_log_addrs: how many logical addresses should be claimed. Set by the
* caller.
* @vendor_id: the vendor ID of the device. Set by the caller.
- * @flags: set to 0.
+ * @flags: flags.
* @osd_name: the OSD name of the device. Set by the caller.
* @primary_device_type: the primary device type for each logical address.
* Set by the caller.
@@ -389,6 +389,9 @@ struct cec_log_addrs {
__u8 features[CEC_MAX_LOG_ADDRS][12];
};
+/* Allow a fallback to unregistered */
+#define CEC_LOG_ADDRS_FL_ALLOW_UNREG_FALLBACK (1 << 0)
+
/* Events */
/* Event that occurs when the adapter state changes */
OpenPOWER on IntegriCloud