2.8. ioctl CEC_ADAP_G_CONNECTOR_INFO

2.8.1. 名称

CEC_ADAP_G_CONNECTOR_INFO - 查询HDMI连接器信息

2.8.2. 概要

CEC_ADAP_G_CONNECTOR_INFO

int ioctl(int fd, CEC_ADAP_G_CONNECTOR_INFO, struct cec_connector_info *argp)

2.8.3. 参数

fd

open() 返回的文件描述符。

argp

2.8.4. 描述

使用此ioctl,应用程序可以了解此CEC设备对应于哪个HDMI连接器。调用此ioctl时,应用程序应提供指向cec_connector_info结构的指针,内核将使用适配器驱动程序提供的信息填充该结构。 只有在设置了 CEC_CAP_CONNECTOR_INFO 功能时,此ioctl才可用。

类型 cec_connector_info
struct cec_connector_info

__u32

type

此适配器关联的连接器类型。

union {

(anonymous)

struct cec_drm_connector_info

drm

struct cec_drm_connector_info

}

连接器类型

CEC_CONNECTOR_TYPE_NO_CONNECTOR

0

没有连接器与适配器关联/驱动程序未提供信息。

CEC_CONNECTOR_TYPE_DRM

1

指示DRM连接器与此适配器关联。 有关连接器的信息可以在 struct cec_drm_connector_info 中找到。

类型 cec_drm_connector_info
struct cec_drm_connector_info

__u32

card_no

DRM卡号:卡的路径中的数字,例如/dev/card0 中的 0。

__u32

connector_id

DRM连接器ID。