diff options
author | Alex Deucher <alex@botch2.(none)> | 2007-11-21 00:05:42 -0500 |
---|---|---|
committer | Alex Deucher <alex@botch2.(none)> | 2007-11-21 00:05:42 -0500 |
commit | 908748343fc9a6cdc38af0fc028c63a82766da3f (patch) | |
tree | 341f245f7f6d9cd38af448ec563c9665e88df7a2 /src/radeon_bios.c | |
parent | 3975da2ea8cb628f7f66c3f26c5dfa181cd1c532 (diff) |
RADEON: store devices ids from bios for each driver output
Diffstat (limited to 'src/radeon_bios.c')
-rw-r--r-- | src/radeon_bios.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_bios.c b/src/radeon_bios.c index ac2495fa..373659ad 100644 --- a/src/radeon_bios.c +++ b/src/radeon_bios.c @@ -236,6 +236,7 @@ static Bool RADEONGetATOMConnectorInfoFromBIOS (ScrnInfoPtr pScrn) info->BiosConnector[i].ddc_line = gpio; info->BiosConnector[i].output_id = id; + info->BiosConnector[i].devices = (1 << i); if (i == ATOM_DEVICE_DFP1_INDEX) info->BiosConnector[i].TMDSType = TMDS_INT; @@ -277,12 +278,14 @@ static Bool RADEONGetATOMConnectorInfoFromBIOS (ScrnInfoPtr pScrn) (i == ATOM_DEVICE_DFP3_INDEX)) && ((j == ATOM_DEVICE_CRT1_INDEX) || (j == ATOM_DEVICE_CRT2_INDEX))) { info->BiosConnector[i].DACType = info->BiosConnector[j].DACType; + info->BiosConnector[i].devices |= info->BiosConnector[j].devices; info->BiosConnector[j].valid = FALSE; } else if (((j == ATOM_DEVICE_DFP1_INDEX) || (j == ATOM_DEVICE_DFP2_INDEX) || (j == ATOM_DEVICE_DFP3_INDEX)) && ((i == ATOM_DEVICE_CRT1_INDEX) || (i == ATOM_DEVICE_CRT2_INDEX))) { info->BiosConnector[j].DACType = info->BiosConnector[i].DACType; + info->BiosConnector[j].devices |= info->BiosConnector[i].devices; info->BiosConnector[i].valid = FALSE; } /* other possible combos? */ |