summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-01-03 11:55:28 +1000
committerDave Airlie <airlied@linux.ie>2008-01-03 11:55:28 +1000
commit1c647279f021d01e110980727b7c7dd7efae1642 (patch)
treecf907c929267f7f09ed9ab9cca6f41dae1044e36 /src
parentf36db6e10d32a68b32d20ae4ad02cfc0bfd1c9c3 (diff)
r600: change devices list depending on connector
Diffstat (limited to 'src')
-rw-r--r--src/radeon_atombios.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/radeon_atombios.c b/src/radeon_atombios.c
index f4d7b2b1..b352a566 100644
--- a/src/radeon_atombios.c
+++ b/src/radeon_atombios.c
@@ -1533,7 +1533,12 @@ RADEONGetATOMConnectorInfoFromBIOSObject (ScrnInfoPtr pScrn)
break;
case ENCODER_OBJECT_ID_INTERNAL_DAC2:
case ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2:
- info->BiosConnector[i].devices |= (1 << ATOM_DEVICE_CRT2_INDEX) | (1<<ATOM_DEVICE_TV1_INDEX);
+ if (info->BiosConnector[i].ConnectorType == CONNECTOR_DIN ||
+ info->BiosConnector[i].ConnectorType == CONNECTOR_STV ||
+ info->BiosConnector[i].ConnectorType == CONNECTOR_CTV)
+ info->BiosConnector[i].devices |= (1 << ATOM_DEVICE_TV1_INDEX);
+ else
+ info->BiosConnector[i].devices |= (1 << ATOM_DEVICE_CRT2_INDEX);
info->BiosConnector[i].DACType = DAC_TVDAC;
break;
}