Document the CEC_EVENT_FL_STATE_EDID_PRESENT event flag.
Signed-off-by: Hans Verkuil <[email protected]>
---
.../userspace-api/media/cec/cec-ioc-adap-g-caps.rst | 3 ++-
.../userspace-api/media/cec/cec-ioc-dqevent.rst | 10 ++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/Documentation/userspace-api/media/cec/cec-ioc-adap-g-caps.rst
b/Documentation/userspace-api/media/cec/cec-ioc-adap-g-caps.rst
index abd62ac64541..49bd90d9392f 100644
--- a/Documentation/userspace-api/media/cec/cec-ioc-adap-g-caps.rst
+++ b/Documentation/userspace-api/media/cec/cec-ioc-adap-g-caps.rst
@@ -148,7 +148,8 @@ returns the information to the application. The ioctl never
fails.
- ``CEC_CAP_HAS_EDID_PRESENT``
- 0x00000400
- If this capability is set, then
- :ref:`CEC_LOG_ADDRS_FL_EDID_PRESENT <cec-log-addrs-flags>` is valid.
+ :ref:`CEC_LOG_ADDRS_FL_EDID_PRESENT <cec-log-addrs-flags>` and
+ :ref:`CEC_EVENT_FL_STATE_EDID_PRESENT <cec-event-flags>` are valid.
This makes it possible to tell apart the case where the Physical Address
is f.f.f.f because no EDID is present, and the case where it is f.f.f.f
because the EDID does not provide a valid Physical Address.
diff --git a/Documentation/userspace-api/media/cec/cec-ioc-dqevent.rst
b/Documentation/userspace-api/media/cec/cec-ioc-dqevent.rst
index 71d6a9e81f75..188600dff3c7 100644
--- a/Documentation/userspace-api/media/cec/cec-ioc-dqevent.rst
+++ b/Documentation/userspace-api/media/cec/cec-ioc-dqevent.rst
@@ -224,6 +224,16 @@ it is guaranteed that the state did change in between the
two events.
- 2
- Set if one or more events of the given event type have been dropped.
This is an indication that the application cannot keep up.
+ * .. _`CEC-EVENT-FL-STATE-EDID-PRESENT`:
+
+ - ``CEC_EVENT_FL_STATE_EDID_PRESENT``
+ - 4
+ - Only set for the ``CEC_EVENT_STATE_CHANGE`` event type.
+ If this flag is set, then an EDID is present. This helps tell apart the
+ case where the Physical Address is f.f.f.f because no EDID is present,
+ and the case where it is f.f.f.f because the EDID does not provide a
+ valid Physical Address. This flag can only be used if
+ ``CEC_CAP_HAS_EDID_PRESENT`` is set in the adapter capabilities.
Return Value
--
2.53.0