summaryrefslogtreecommitdiff
path: root/xorg
diff options
context:
space:
mode:
authorJerome Glisse <glisse@freedesktop.org>2007-07-10 17:13:26 +0200
committerJerome Glisse <glisse@freedesktop.org>2007-07-10 17:13:26 +0200
commit284beece195a90e4bd232195c5493ab075a33962 (patch)
tree53c12a9e46a695deb74d9508cc2b99d4e3ef514b /xorg
parent67f264b2fc5762f4940d395a45e72fc2ac682683 (diff)
avivo: make sure LFP overwritte second DVI output if one exist.
LFP connector use second TMDS so we have to make sure we do not create an output for a second DVI-I output associated to second TMDS otherwise LFP mode might be overwritten by this second DVI output.
Diffstat (limited to 'xorg')
-rw-r--r--xorg/avivo_output.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/xorg/avivo_output.c b/xorg/avivo_output.c
index c10b916..b299713 100644
--- a/xorg/avivo_output.c
+++ b/xorg/avivo_output.c
@@ -279,9 +279,10 @@ avivo_output_exist(ScrnInfoPtr screen_info, xf86ConnectorType type,
if (avivo_output->number == number && avivo_output->type == type)
return TRUE;
/* TMDS2 is shared by LFP & DVI-I */
- if (avivo_output->type == XF86ConnectorLFP && number == 1)
+ if (avivo_output->type == XF86ConnectorLFP && number >= 1)
return TRUE;
- if (type == XF86ConnectorLFP && avivo_output->number == 1) {
+ if (type == XF86ConnectorLFP && avivo_output->number >= 1) {
+ avivo_output->type = type;
avivo_output->i2c->DriverPrivate.uval = ddc_reg;
return TRUE;
}
@@ -335,7 +336,7 @@ avivo_output_init(ScrnInfoPtr screen_info, xf86ConnectorType type,
avivo_output->type = type;
avivo_output->number = number;
avivo_output->output_offset = 0;
- if (number >= 2) {
+ if (number >= 1) {
switch (avivo_output->type) {
case XF86ConnectorVGA:
avivo_output->output_offset = AVIVO_DAC2_CNTL - AVIVO_DAC1_CNTL;