From bb228d7ca60ae5922385b703df72831ee32b073d Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 18 Apr 2012 16:40:51 +0000 Subject: [PATCH] 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 --- src/add-ons/accelerants/radeon_hd/mode.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/add-ons/accelerants/radeon_hd/mode.cpp b/src/add-ons/accelerants/radeon_hd/mode.cpp index 381878dbcc..2eaa2b6328 100644 --- a/src/add-ons/accelerants/radeon_hd/mode.cpp +++ b/src/add-ons/accelerants/radeon_hd/mode.cpp @@ -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);