Document the CEC_EVENT_FL_STATE_HPD_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 bf734cbee0dd..0afb0e11fd72 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_HPD_PRESENT``
- 0x00000400
- If this capability is set, then
- :ref:`CEC_LOG_ADDRS_FL_HPD_PRESENT <cec-log-addrs-flags>` is valid.
+ :ref:`CEC_LOG_ADDRS_FL_HPD_PRESENT <cec-log-addrs-flags>` and
+ :ref:`CEC_EVENT_FL_STATE_HPD_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 HPD (Hotplug Detect) is present, and the case
where it is f.f.f.f because the EDID does not provide a valid Physical
diff --git a/Documentation/userspace-api/media/cec/cec-ioc-dqevent.rst
b/Documentation/userspace-api/media/cec/cec-ioc-dqevent.rst
index 71d6a9e81f75..b399c5f1b847 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-HPD-PRESENT`:
+
+ - ``CEC_EVENT_FL_STATE_HPD_PRESENT``
+ - 4
+ - Only set for the ``CEC_EVENT_STATE_CHANGE`` event type.
+ If this flag is set, then an HPD is present. This helps tell apart the
+ case where the Physical Address is f.f.f.f because no HPD (Hotplug
+ Detect) 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_HPD_PRESENT`` is set in the adapter capabilities.
Return Value
--
2.53.0