1 .. SPDX-License-Identifier: GPL-2.0
3 .. Copyright 2019 Google LLC
7 .. _CEC_ADAP_G_CONNECTOR_INFO:
9 *******************************
10 ioctl CEC_ADAP_G_CONNECTOR_INFO
11 *******************************
16 CEC_ADAP_G_CONNECTOR_INFO - Query HDMI connector information
21 .. c:macro:: CEC_ADAP_G_CONNECTOR_INFO
23 ``int ioctl(int fd, CEC_ADAP_G_CONNECTOR_INFO, struct cec_connector_info *argp)``
29 File descriptor returned by :c:func:`open()`.
36 Using this ioctl an application can learn which HDMI connector this CEC
37 device corresponds to. While calling this ioctl the application should
38 provide a pointer to a cec_connector_info struct which will be populated
39 by the kernel with the info provided by the adapter's driver. This ioctl
40 is only available if the ``CEC_CAP_CONNECTOR_INFO`` capability is set.
42 .. tabularcolumns:: |p{1.0cm}|p{4.4cm}|p{2.5cm}|p{9.6cm}|
44 .. c:type:: cec_connector_info
46 .. flat-table:: struct cec_connector_info
53 - The type of connector this adapter is associated with.
56 * - ``struct cec_drm_connector_info``
58 - :ref:`cec-drm-connector-info`
62 .. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.6cm}|
66 .. flat-table:: Connector types
71 * .. _`CEC-CONNECTOR-TYPE-NO-CONNECTOR`:
73 - ``CEC_CONNECTOR_TYPE_NO_CONNECTOR``
75 - No connector is associated with the adapter/the information is not
76 provided by the driver.
77 * .. _`CEC-CONNECTOR-TYPE-DRM`:
79 - ``CEC_CONNECTOR_TYPE_DRM``
81 - Indicates that a DRM connector is associated with this adapter.
82 Information about the connector can be found in
83 :ref:`cec-drm-connector-info`.
85 .. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.6cm}|
87 .. c:type:: cec_drm_connector_info
89 .. _cec-drm-connector-info:
91 .. flat-table:: struct cec_drm_connector_info
96 * .. _`CEC-DRM-CONNECTOR-TYPE-CARD-NO`:
100 - DRM card number: the number from a card's path, e.g. 0 in case of
102 * .. _`CEC-DRM-CONNECTOR-TYPE-CONNECTOR_ID`: