From 44d9ceacb1fa6e1859d5d8bd1c55405aea24ad85 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Mon, 26 Jan 2009 03:47:32 -0500 Subject: Fix legacy output setup don't have assigned encoders at this point. Need to eventually move this stuff to encoder dev_priv. --- src/radeon_output.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/radeon_output.c b/src/radeon_output.c index 345252d1..ff307708 100644 --- a/src/radeon_output.c +++ b/src/radeon_output.c @@ -2071,21 +2071,19 @@ void RADEONInitConnector(xf86OutputPtr output) ScrnInfoPtr pScrn = output->scrn; RADEONInfoPtr info = RADEONPTR(pScrn); RADEONOutputPrivatePtr radeon_output = output->driver_private; - radeon_encoder_ptr radeon_encoder = radeon_get_encoder(output); - - if (radeon_encoder == NULL) - return; radeon_output->rmx_type = RMX_OFF; if (!IS_AVIVO_VARIANT) { - if (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_DVO1) + /* XXX fix me - move to encoders */ + + if (radeon_output->devices & (ATOM_DEVICE_DFP2_SUPPORT)) RADEONGetExtTMDSInfo(output); - if (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_TMDS1) + if (radeon_output->devices & (ATOM_DEVICE_DFP1_SUPPORT)) RADEONGetTMDSInfo(output); - if (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_DAC2) { + if (radeon_output->devices & (ATOM_DEVICE_CRT2_SUPPORT)) { if (xf86ReturnOptValBool(info->Options, OPTION_TVDAC_LOAD_DETECT, FALSE)) radeon_output->load_detection = 1; radeon_output->tv_on = FALSE; -- cgit v1.2.3