diff options
author | Dave Airlie <airlied@redhat.com> | 2007-12-11 15:56:48 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-12-11 15:56:48 +1000 |
commit | f99dea7db00dd46aa96eaed3a61dff9c956fd86f (patch) | |
tree | 74e3c6321c3403c54c81619eb20bb64c9dbc35d3 /libdrm/xf86drmMode.c | |
parent | 3b6786e3e6523b1ceca3645ea4c6081f170d2134 (diff) |
modesetting: fixup property setting and add connector property
Diffstat (limited to 'libdrm/xf86drmMode.c')
-rw-r--r-- | libdrm/xf86drmMode.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c index 7e2683ea..726c55ab 100644 --- a/libdrm/xf86drmMode.c +++ b/libdrm/xf86drmMode.c @@ -214,6 +214,8 @@ int drmModeAddFB(int fd, uint32_t width, uint32_t height, uint8_t depth, int drmModeRmFB(int fd, uint32_t bufferId) { return ioctl(fd, DRM_IOCTL_MODE_RMFB, &bufferId); + + } drmModeFBPtr drmModeGetFB(int fd, uint32_t buf) @@ -511,3 +513,19 @@ void drmModeFreePropertyBlob(drmModePropertyBlobPtr ptr) drmFree(ptr->data); drmFree(ptr); } + +int drmModeOutputSetProperty(int fd, uint32_t output_id, uint32_t property_id, + uint64_t value) +{ + struct drm_mode_output_set_property osp; + int ret; + + osp.output_id = output_id; + osp.prop_id = property_id; + osp.value = value; + + if (ret = ioctl(fd, DRM_IOCTL_MODE_SETPROPERTY, &osp)) + return ret; + + return 0; +} |