diff options
author | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-05-18 23:45:11 -0400 |
---|---|---|
committer | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-05-18 23:45:11 -0400 |
commit | 9a147fef8e0e2ede2a0008c4ecfbd9b00c8dc5f6 (patch) | |
tree | bd1e7148fcffa622346d5258a007f1a9b0d1d673 /src/radeon_output.c | |
parent | bbd6faff4c6acb48970d774375c8a61861405f96 (diff) |
RADEON: if connector is VGA set TMDS to none
Diffstat (limited to 'src/radeon_output.c')
-rw-r--r-- | src/radeon_output.c | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/src/radeon_output.c b/src/radeon_output.c index 3247b74..a52b1fc 100644 --- a/src/radeon_output.c +++ b/src/radeon_output.c @@ -553,14 +553,28 @@ Bool RADEONSetupConnectors(ScrnInfoPtr pScrn) } radeon_output->MonType = MT_UNKNOWN; radeon_output->ConnectorType = info->BiosConnector[i].ConnectorType; - if ((info->IsAtomBios && radeon_output->ConnectorType == CONNECTOR_DVI_D_ATOM) || - radeon_output->ConnectorType == CONNECTOR_DVI_D) - radeon_output->DACType = DAC_NONE; - else - radeon_output->DACType = info->BiosConnector[i].DACType; radeon_output->DDCType = info->BiosConnector[i].DDCType; - radeon_output->TMDSType = info->BiosConnector[i].TMDSType; + if (info->IsAtomBios) { + if (radeon_output->ConnectorType == CONNECTOR_DVI_D_ATOM) + radeon_output->DACType = DAC_NONE; + else + radeon_output->DACType = info->BiosConnector[i].DACType; + + if (radeon_output->ConnectorType == CONNECTOR_VGA_ATOM) + radeon_output->TMDSType = TMDS_NONE; + else + radeon_output->TMDSType = info->BiosConnector[i].TMDSType; + } else { + if (radeon_output->ConnectorType == CONNECTOR_DVI_D) + radeon_output->DACType = DAC_NONE; + else + radeon_output->DACType = info->BiosConnector[i].DACType; + if (radeon_output->ConnectorType == CONNECTOR_CRT) + radeon_output->TMDSType = TMDS_NONE; + else + radeon_output->TMDSType = info->BiosConnector[i].TMDSType; + } RADEONSetOutputType(pScrn, radeon_output); output = xf86OutputCreate(pScrn, &radeon_output_funcs, OutputType[radeon_output->type]); if (!output) { |