diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-06-11 17:04:35 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-07-07 04:38:32 -0400 |
commit | 5c8d7171cc4984351af802a525675d50ae555a7b (patch) | |
tree | ed6337bff7e94fb3d2ef5fe96bd70e8882d6991e /drivers/gpu | |
parent | a907a2e7d287f2b89fd81bc8edf164c0008c624f (diff) |
drm/kms: add crtc disable function
More explicit than dpms. Same as the encoder disable function.
Need this to explicity disconnect plls from crtcs for reuse when you
plls:crtcs ratio isn't 1:1.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 9b2a54117c9..fa1323ff56b 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c | |||
@@ -241,7 +241,10 @@ void drm_helper_disable_unused_functions(struct drm_device *dev) | |||
241 | struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private; | 241 | struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private; |
242 | crtc->enabled = drm_helper_crtc_in_use(crtc); | 242 | crtc->enabled = drm_helper_crtc_in_use(crtc); |
243 | if (!crtc->enabled) { | 243 | if (!crtc->enabled) { |
244 | crtc_funcs->dpms(crtc, DRM_MODE_DPMS_OFF); | 244 | if (crtc_funcs->disable) |
245 | (*crtc_funcs->disable)(crtc); | ||
246 | else | ||
247 | (*crtc_funcs->dpms)(crtc, DRM_MODE_DPMS_OFF); | ||
245 | crtc->fb = NULL; | 248 | crtc->fb = NULL; |
246 | } | 249 | } |
247 | } | 250 | } |