Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322389
b: refs/heads/master
c: 4e58591
h: refs/heads/master
i:
  322387: e0f0ea6
v: v3
  • Loading branch information
Alex Deucher committed Aug 29, 2012
1 parent b24dde4 commit f9cb6c7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 523885dec109188b6bed53ec67362072f13b0d43
refs/heads/master: 4e58591c8961b3e31709313f75819f2eec06e322
14 changes: 14 additions & 0 deletions trunk/drivers/gpu/drm/radeon/atombios_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1682,9 +1682,22 @@ static void atombios_crtc_disable(struct drm_crtc *crtc)
struct drm_device *dev = crtc->dev;
struct radeon_device *rdev = dev->dev_private;
struct radeon_atom_ss ss;
int i;

atombios_crtc_dpms(crtc, DRM_MODE_DPMS_OFF);

for (i = 0; i < rdev->num_crtc; i++) {
if (rdev->mode_info.crtcs[i] &&
rdev->mode_info.crtcs[i]->enabled &&
i != radeon_crtc->crtc_id &&
radeon_crtc->pll_id == rdev->mode_info.crtcs[i]->pll_id) {
/* one other crtc is using this pll don't turn
* off the pll
*/
goto done;
}
}

switch (radeon_crtc->pll_id) {
case ATOM_PPLL1:
case ATOM_PPLL2:
Expand All @@ -1701,6 +1714,7 @@ static void atombios_crtc_disable(struct drm_crtc *crtc)
default:
break;
}
done:
radeon_crtc->pll_id = -1;
}

Expand Down

0 comments on commit f9cb6c7

Please sign in to comment.