drmModeFreeConnector(drmmode_output->mode_output); drmmode_output->mode_output =drmModeGetConnector(drmmode->fd, drmmode_output->output_id);switch(drmmode_output->mode_output->connection) {caseDRM_MODE_CONNECTED: status = XF86OutputStatusConnected;break;caseDRM_MODE_DISCONNECTED: status = XF86O...
static int modeset_setup_dev(int fd, drmModeRes *res, drmModeConnector *conn, struct modeset_dev *dev) { int ret; /* check if a monitor is connected */ if (conn->connection != DRM_MODE_CONNECTED) { fprintf(stderr, "ignoring unused connector %u\n", conn->connector_id); return -...
close(fd); return-1; } // 创建一个cursor plane uint32_tcursor_id; ret=drmModeGetPlaneResources(fd); if(ret){ fprintf(stderr,"get plane resources failed: %s\n",strerror(errno)); drmModeFreeResources(resources); close(fd); return-1; } drmModePlaneRes*plane_res=drmModeGetPlaneResources...
typedefstruct_drmModeConnector{uint32_tconnector_id;uint32_tencoder_id;/**< Encoder currently connected to */uint32_tconnector_type;uint32_tconnector_type_id;drmModeConnectionconnection;uint32_tmmWidth,mmHeight;/**< HxW in millimeters */drmModeSubPixelsubpixel;intcount_modes;drmModeModeInfoPtrm...
_drmModeConnector描述结构: typedefstruct_drmModeConnector{uint32_tconnector_id;uint32_tencoder_id;/**< Encoder currently connected to */uint32_tconnector_type;uint32_tconnector_type_id;drmModeConnection connection;uint32_tmmWidth,mmHeight;/**< HxW in millimeters */drmModeSubPixel subpixel;int...
开发者ID:nikai3d,项目名称:mesa,代码行数:30,代码来源:modeset.c 示例3: run_test ▲点赞 5▼ staticintrun_test(constchar*test_name,enumtest_flags flags){inti; resources =drmModeGetResources(drm_fd); igt_assert(resources);/* Find any connected displays */for(i =0; i < resources->count...
DRM_MODE_CONNECTED) { break; } drmModeFreeConnector(connector); } if (!connector) { fprintf(stderr, "No suitable connector found\n"); drmModeFreeResources(resources); close(fd); return -1; } drmModeModeInfo mode = connector->modes[0]; drmModeCrtc *crtc = drmModeGetCrtc(fd, ...
_drmModeConnector描述结构: typedefstruct_drmModeConnector{uint32_t connector_id;uint32_t encoder_id;/**< Encoder currently connected to */uint32_t connector_type;uint32_t connector_type_id;drmModeConnection connection;uint32_t mmWidth,mmHeight;/**< HxW in millimeters */drmModeSubPixel subpi...
cat /sys/class/drm/card0-HDMI-A-1/status //打开是connected,关闭是disconnected LVDS:ls -dl /...
//client用来关联crtc/plane/mode_set等参数 struct drm_client_dev client;struct drm_client_buffer *...