radeon_hd: Only assign encoder to crtc after dpms call

* This is the order I received via email long ago and
  it makes more sense to me then the drm method
This commit is contained in:
Alexander von Gluck IV 2012-04-18 16:40:51 +00:00
parent 163e02d670
commit bb228d7ca6

View File

@ -173,15 +173,15 @@ radeon_set_display_mode(display_mode* mode)
if (connector_is_dp(connectorIndex))
dpInfo->laneCount = dp_get_lane_count(dpInfo, mode);
// *** encoder prep
// *** crtc and encoder prep
encoder_output_lock(true);
encoder_dpms_set(id, B_DPMS_OFF);
encoder_assign_crtc(id);
// *** CRT controler prep
display_crtc_lock(id, ATOM_ENABLE);
display_crtc_dpms(id, B_DPMS_OFF);
// *** Set up encoder -> crtc routing
encoder_assign_crtc(id);
// *** CRT controler mode set
// TODO: program SS
pll_set(ATOM_PPLL1, mode->timing.pixel_clock, id);