summaryrefslogtreecommitdiff
path: root/src/radeon_output.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-01-19 18:42:12 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-01-19 18:42:12 -0500
commit7cc7ba8bf9ce2f0eebfd9b48aa648c416c333ff4 (patch)
tree52f2785eb48ce1278ee8e82a6b1b6d46ab3753d1 /src/radeon_output.c
parent25f3878858e6efb486888e5271b60d4ba08c73c6 (diff)
ATOM: round 1 of output rework
Diffstat (limited to 'src/radeon_output.c')
-rw-r--r--src/radeon_output.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/radeon_output.c b/src/radeon_output.c
index efbfdfeb..2ac577ce 100644
--- a/src/radeon_output.c
+++ b/src/radeon_output.c
@@ -356,6 +356,49 @@ RADEONConnectorFindMonitor(xf86OutputPtr output)
}
}
+ if (radeon_output->MonType == MT_DFP) {
+ if (radeon_output->devices & ATOM_DEVICE_DFP1_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_DFP1_SUPPORT;
+ else if (radeon_output->devices & ATOM_DEVICE_DFP2_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_DFP2_SUPPORT;
+ else if (radeon_output->devices & ATOM_DEVICE_DFP3_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_DFP3_SUPPORT;
+ else if (radeon_output->devices & ATOM_DEVICE_DFP4_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_DFP4_SUPPORT;
+ else if (radeon_output->devices & ATOM_DEVICE_DFP5_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_DFP5_SUPPORT;
+ else
+ radeon_output->active_device = 0;
+ } else if (radeon_output->MonType == MT_CRT) {
+ if (radeon_output->devices & ATOM_DEVICE_CRT1_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_CRT1_SUPPORT;
+ else if (radeon_output->devices & ATOM_DEVICE_CRT2_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_CRT2_SUPPORT;
+ else
+ radeon_output->active_device = 0;
+ } else if (radeon_output->MonType == MT_LCD) {
+ if (radeon_output->devices & ATOM_DEVICE_LCD1_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_LCD1_SUPPORT;
+ else if (radeon_output->devices & ATOM_DEVICE_LCD2_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_LCD2_SUPPORT;
+ else
+ radeon_output->active_device = 0;
+ } else if ((radeon_output->MonType == MT_STV) ||
+ (radeon_output->MonType == MT_CTV)){
+ if (radeon_output->devices & ATOM_DEVICE_TV1_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_TV1_SUPPORT;
+ else if (radeon_output->devices & ATOM_DEVICE_TV2_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_TV2_SUPPORT;
+ else
+ radeon_output->active_device = 0;
+ } else if (radeon_output->MonType == MT_CV) {
+ if (radeon_output->devices & ATOM_DEVICE_CV_SUPPORT)
+ radeon_output->active_device = ATOM_DEVICE_CV_SUPPORT;
+ else
+ radeon_output->active_device = 0;
+ } else
+ radeon_output->active_device = 0;
+
/* update panel info for RMX */
if (radeon_output->MonType == MT_LCD || radeon_output->MonType == MT_DFP)
RADEONUpdatePanelSize(output);