1 .. SPDX-License-Identifier: GPL-2.0
3 .. Copyright 2019 Google LLC
5 .. _CEC_ADAP_G_CONNECTOR_INFO:
7 *******************************
8 ioctl CEC_ADAP_G_CONNECTOR_INFO
9 *******************************
14 CEC_ADAP_G_CONNECTOR_INFO - Query HDMI connector information
19 .. c:function:: int ioctl( int fd, CEC_ADAP_G_CONNECTOR_INFO, struct cec_connector_info *argp )
20 :name: CEC_ADAP_G_CONNECTOR_INFO
26 File descriptor returned by :c:func:`open() <cec-open>`.
34 Using this ioctl an application can learn which HDMI connector this CEC
35 device corresponds to. While calling this ioctl the application should
36 provide a pointer to a cec_connector_info struct which will be populated
37 by the kernel with the info provided by the adapter's driver. This ioctl
38 is only available if the ``CEC_CAP_CONNECTOR_INFO`` capability is set.
40 .. tabularcolumns:: |p{1.0cm}|p{4.4cm}|p{2.5cm}|p{9.6cm}|
42 .. c:type:: cec_connector_info
44 .. flat-table:: struct cec_connector_info
51 - The type of connector this adapter is associated with.
54 * - ``struct cec_drm_connector_info``
56 - :ref:`cec-drm-connector-info`
61 .. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.6cm}|
65 .. flat-table:: Connector types
70 * .. _`CEC-CONNECTOR-TYPE-NO-CONNECTOR`:
72 - ``CEC_CONNECTOR_TYPE_NO_CONNECTOR``
74 - No connector is associated with the adapter/the information is not
75 provided by the driver.
76 * .. _`CEC-CONNECTOR-TYPE-DRM`:
78 - ``CEC_CONNECTOR_TYPE_DRM``
80 - Indicates that a DRM connector is associated with this adapter.
81 Information about the connector can be found in
82 :ref:`cec-drm-connector-info`.
84 .. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.6cm}|
86 .. c:type:: cec_drm_connector_info
88 .. _cec-drm-connector-info:
90 .. flat-table:: struct cec_drm_connector_info
95 * .. _`CEC-DRM-CONNECTOR-TYPE-CARD-NO`:
99 - DRM card number: the number from a card's path, e.g. 0 in case of
101 * .. _`CEC-DRM-CONNECTOR-TYPE-CONNECTOR_ID`: