1 .. -*- coding: utf-8; mode: rst -*-
12 CEC_ADAP_G_CAPS - Query device capabilities
17 .. c:function:: int ioctl( int fd, CEC_ADAP_G_CAPS, struct cec_caps *argp )
18 :name: CEC_ADAP_G_CAPS
24 File descriptor returned by :c:func:`open() <cec-open>`.
32 All cec devices must support :ref:`ioctl CEC_ADAP_G_CAPS <CEC_ADAP_G_CAPS>`. To query
33 device information, applications call the ioctl with a pointer to a
34 struct :c:type:`cec_caps`. The driver fills the structure and
35 returns the information to the application. The ioctl never fails.
37 .. tabularcolumns:: |p{1.2cm}|p{2.5cm}|p{13.8cm}|
41 .. flat-table:: struct cec_caps
48 - The name of the cec adapter driver.
51 - The name of this CEC adapter. The combination ``driver`` and
52 ``name`` must be unique.
55 - The capabilities of the CEC adapter, see
56 :ref:`cec-capabilities`.
59 - CEC Framework API version, formatted with the ``KERNEL_VERSION()``
63 .. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.6cm}|
67 .. flat-table:: CEC Capabilities Flags
72 * .. _`CEC-CAP-PHYS-ADDR`:
74 - ``CEC_CAP_PHYS_ADDR``
76 - Userspace has to configure the physical address by calling
77 :ref:`ioctl CEC_ADAP_S_PHYS_ADDR <CEC_ADAP_S_PHYS_ADDR>`. If
78 this capability isn't set, then setting the physical address is
79 handled by the kernel whenever the EDID is set (for an HDMI
80 receiver) or read (for an HDMI transmitter).
81 * .. _`CEC-CAP-LOG-ADDRS`:
83 - ``CEC_CAP_LOG_ADDRS``
85 - Userspace has to configure the logical addresses by calling
86 :ref:`ioctl CEC_ADAP_S_LOG_ADDRS <CEC_ADAP_S_LOG_ADDRS>`. If
87 this capability isn't set, then the kernel will have configured
89 * .. _`CEC-CAP-TRANSMIT`:
91 - ``CEC_CAP_TRANSMIT``
93 - Userspace can transmit CEC messages by calling
94 :ref:`ioctl CEC_TRANSMIT <CEC_TRANSMIT>`. This implies that
95 userspace can be a follower as well, since being able to transmit
96 messages is a prerequisite of becoming a follower. If this
97 capability isn't set, then the kernel will handle all CEC
98 transmits and process all CEC messages it receives.
99 * .. _`CEC-CAP-PASSTHROUGH`:
101 - ``CEC_CAP_PASSTHROUGH``
103 - Userspace can use the passthrough mode by calling
104 :ref:`ioctl CEC_S_MODE <CEC_S_MODE>`.
109 - This adapter supports the remote control protocol.
110 * .. _`CEC-CAP-MONITOR-ALL`:
112 - ``CEC_CAP_MONITOR_ALL``
114 - The CEC hardware can monitor all messages, not just directed and
116 * .. _`CEC-CAP-NEEDS-HPD`:
118 - ``CEC_CAP_NEEDS_HPD``
120 - The CEC hardware is only active if the HDMI Hotplug Detect pin is
121 high. This makes it impossible to use CEC to wake up displays that
122 set the HPD pin low when in standby mode, but keep the CEC bus
124 * .. _`CEC-CAP-MONITOR-PIN`:
126 - ``CEC_CAP_MONITOR_PIN``
128 - The CEC hardware can monitor CEC pin changes from low to high voltage
129 and vice versa. When in pin monitoring mode the application will
130 receive ``CEC_EVENT_PIN_CEC_LOW`` and ``CEC_EVENT_PIN_CEC_HIGH`` events.
137 On success 0 is returned, on error -1 and the ``errno`` variable is set
138 appropriately. The generic error codes are described at the
139 :ref:`Generic Error Codes <gen-errors>` chapter.