summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-01-21 13:52:11 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-01-21 13:52:11 -0500
commit12010ae9296635ffa5f42ce0cd14482aaa290cf7 (patch)
treeab3d1b1d0f6d86bd5e21ff00d435417ed95ab79c
parent3f8bbede8bf639050f773780888b89cbdcb425b8 (diff)
More legacy rework
-rw-r--r--src/legacy_crtc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/legacy_crtc.c b/src/legacy_crtc.c
index 78ac5b39..e71170fc 100644
--- a/src/legacy_crtc.c
+++ b/src/legacy_crtc.c
@@ -45,6 +45,7 @@
#include "radeon_macros.h"
#include "radeon_probe.h"
#include "radeon_version.h"
+#include "radeon_atombios.h"
#ifdef XF86DRI
#define _XF86DRI_SERVER_
@@ -1742,9 +1743,10 @@ legacy_crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode,
RADEONOutputPrivatePtr radeon_output = output->driver_private;
if (output->crtc == crtc) {
- if (radeon_output->MonType != MT_CRT)
+ if (radeon_output->active_device && (ATOM_DEVICE_LCD_SUPPORT |
+ ATOM_DEVICE_DFP_SUPPORT))
pll_flags |= RADEON_PLL_NO_ODD_POST_DIV;
- if (radeon_output->MonType == MT_LCD)
+ if (radeon_output->active_device && (ATOM_DEVICE_LCD_SUPPORT))
pll_flags |= (RADEON_PLL_USE_BIOS_DIVS | RADEON_PLL_USE_REF_DIV);
}
}
@@ -1789,7 +1791,7 @@ legacy_crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode,
RADEONOutputPrivatePtr radeon_output = output->driver_private;
if (output->crtc == crtc) {
- if (radeon_output->MonType == MT_STV || radeon_output->MonType == MT_CTV) {
+ if (radeon_output->active_device && (ATOM_DEVICE_TV_SUPPORT)) {
switch (radeon_crtc->crtc_id) {
case 0:
RADEONAdjustCrtcRegistersForTV(pScrn, info->ModeReg, adjusted_mode, output);