Commit 8f164ce4 authored by Daniel Stone's avatar Daniel Stone Committed by Daniel Vetter

drm: atomic: Expose CRTC active property

Active was here, and we allowed users to set it, but not to get it as
well.
Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 5a27528a
...@@ -266,9 +266,17 @@ int drm_atomic_crtc_get_property(struct drm_crtc *crtc, ...@@ -266,9 +266,17 @@ int drm_atomic_crtc_get_property(struct drm_crtc *crtc,
const struct drm_crtc_state *state, const struct drm_crtc_state *state,
struct drm_property *property, uint64_t *val) struct drm_property *property, uint64_t *val)
{ {
if (crtc->funcs->atomic_get_property) struct drm_device *dev = crtc->dev;
struct drm_mode_config *config = &dev->mode_config;
if (property == config->prop_active)
*val = state->active;
else if (crtc->funcs->atomic_get_property)
return crtc->funcs->atomic_get_property(crtc, state, property, val); return crtc->funcs->atomic_get_property(crtc, state, property, val);
else
return -EINVAL; return -EINVAL;
return 0;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment