Add a capability and a new flag that is used to indicate if an EDID is present.
Signed-off-by: Hans Verkuil <[email protected]> --- include/uapi/linux/cec.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/include/uapi/linux/cec.h b/include/uapi/linux/cec.h index fdfc97a6e4ec..8f7c7a4cb505 100644 --- a/include/uapi/linux/cec.h +++ b/include/uapi/linux/cec.h @@ -325,27 +325,27 @@ static inline int cec_is_unconfigured(__u16 log_addr_mask) #define CEC_MODE_FOLLOWER_MSK 0xf0 /* Userspace has to configure the physical address */ -#define CEC_CAP_PHYS_ADDR (1 << 0) +#define CEC_CAP_PHYS_ADDR (1 << 0) /* Userspace has to configure the logical addresses */ -#define CEC_CAP_LOG_ADDRS (1 << 1) +#define CEC_CAP_LOG_ADDRS (1 << 1) /* Userspace can transmit messages (and thus become follower as well) */ -#define CEC_CAP_TRANSMIT (1 << 2) -/* - * Passthrough all messages instead of processing them. - */ -#define CEC_CAP_PASSTHROUGH (1 << 3) +#define CEC_CAP_TRANSMIT (1 << 2) +/* Passthrough all messages instead of processing them. */ +#define CEC_CAP_PASSTHROUGH (1 << 3) /* Supports remote control */ -#define CEC_CAP_RC (1 << 4) +#define CEC_CAP_RC (1 << 4) /* Hardware can monitor all messages, not just directed and broadcast. */ -#define CEC_CAP_MONITOR_ALL (1 << 5) +#define CEC_CAP_MONITOR_ALL (1 << 5) /* Hardware can use CEC only if the HDMI HPD pin is high. */ -#define CEC_CAP_NEEDS_HPD (1 << 6) +#define CEC_CAP_NEEDS_HPD (1 << 6) /* Hardware can monitor CEC pin transitions */ -#define CEC_CAP_MONITOR_PIN (1 << 7) +#define CEC_CAP_MONITOR_PIN (1 << 7) /* CEC_ADAP_G_CONNECTOR_INFO is available */ -#define CEC_CAP_CONNECTOR_INFO (1 << 8) +#define CEC_CAP_CONNECTOR_INFO (1 << 8) /* CEC_MSG_FL_REPLY_VENDOR_ID is available */ -#define CEC_CAP_REPLY_VENDOR_ID (1 << 9) +#define CEC_CAP_REPLY_VENDOR_ID (1 << 9) +/* CEC_LOG_ADDRS_FL_EDID_PRESENT is available */ +#define CEC_CAP_HAS_EDID_PRESENT (1 << 10) /** * struct cec_caps - CEC capabilities structure. @@ -405,6 +405,8 @@ struct cec_log_addrs { #define CEC_LOG_ADDRS_FL_CDC_ONLY (1 << 2) /* Configuration failed */ #define CEC_LOG_ADDRS_FL_CONFIG_FAILED (1 << 3) +/* EDID is present */ +#define CEC_LOG_ADDRS_FL_EDID_PRESENT (1 << 4) /** * struct cec_drm_connector_info - tells which drm connector is -- 2.53.0
