summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@benzylpiperazine.boston.devel.redhat.com>2009-03-06 17:32:15 -0500
committerroot <root@benzylpiperazine.boston.devel.redhat.com>2009-03-06 17:32:15 -0500
commit04481bf450650d1ea5aadabc9213b899b0fe8119 (patch)
treeee78c3706e3d07f0302f7029e9e37ac26e85b19d
parent0ba73e040b94590867f8b1071a26da2526a3c375 (diff)
atom: Enable DisplayPort source to DVI/HDMI sink
DP source to DP sink still doesn't work yet, of course.
-rw-r--r--src/atombios_output.c5
-rw-r--r--src/radeon_output.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/src/atombios_output.c b/src/atombios_output.c
index 6d87c8ea..613f729c 100644
--- a/src/atombios_output.c
+++ b/src/atombios_output.c
@@ -430,7 +430,10 @@ atombios_get_encoder_mode(xf86OutputPtr output)
return ATOM_ENCODER_MODE_LVDS;
break;
case CONNECTOR_DISPLAY_PORT:
- return ATOM_ENCODER_MODE_DP;
+ if (radeon_output->MonType == MT_DP)
+ return ATOM_ENCODER_MODE_DP;
+ else
+ return atombios_maybe_hdmi_mode(output);
break;
case CONNECTOR_DVI_A:
case CONNECTOR_VGA:
diff --git a/src/radeon_output.c b/src/radeon_output.c
index 0be7625d..68bea219 100644
--- a/src/radeon_output.c
+++ b/src/radeon_output.c
@@ -255,7 +255,11 @@ radeon_ddc_connected(xf86OutputPtr output)
MonType = MT_DFP;
break;
case CONNECTOR_DISPLAY_PORT:
- MonType = MT_DP;
+ /*
+ * XXX wrong. need to infer based on whether we got DDC from I2C
+ * or AUXCH.
+ */
+ MonType = MT_DFP;
case CONNECTOR_DVI_I:
if (MonInfo->rawData[0x14] & 0x80) /* if it's digital and DVI */
MonType = MT_DFP;