Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204989
b: refs/heads/master
c: 5c8d717
h: refs/heads/master
i:
  204987: d131bd9
v: v3
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Jul 7, 2010
1 parent a3e6e16 commit 05b32aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a907a2e7d287f2b89fd81bc8edf164c0008c624f
refs/heads/master: 5c8d7171cc4984351af802a525675d50ae555a7b
5 changes: 4 additions & 1 deletion trunk/drivers/gpu/drm/drm_crtc_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ void drm_helper_disable_unused_functions(struct drm_device *dev)
struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private;
crtc->enabled = drm_helper_crtc_in_use(crtc);
if (!crtc->enabled) {
crtc_funcs->dpms(crtc, DRM_MODE_DPMS_OFF);
if (crtc_funcs->disable)
(*crtc_funcs->disable)(crtc);
else
(*crtc_funcs->dpms)(crtc, DRM_MODE_DPMS_OFF);
crtc->fb = NULL;
}
}
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/drm/drm_crtc_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ struct drm_crtc_helper_funcs {

/* reload the current crtc LUT */
void (*load_lut)(struct drm_crtc *crtc);

/* disable crtc when not in use - more explicit than dpms off */
void (*disable)(struct drm_crtc *crtc);
};

struct drm_encoder_helper_funcs {
Expand Down

0 comments on commit 05b32aa

Please sign in to comment.