Fix a problem creating the I2C bus for the SDVOC

interface, due to a name match with SDVOB.

Bus names must be unique.
This commit is contained in:
Alan Hourihane 2006-08-04 20:39:50 +01:00
parent e5c572f841
commit 71e3e2d4e3
1 changed files with 4 additions and 1 deletions

View File

@ -858,7 +858,10 @@ I830SDVOInit(ScrnInfoPtr pScrn, int output_index, CARD32 output_device)
xfree(sdvo);
return NULL;
}
ddcbus->BusName = "SDVO DDC Bus";
if (output_device == SDVOB)
ddcbus->BusName = "SDVOB DDC Bus";
else
ddcbus->BusName = "SDVOC DDC Bus";
ddcbus->scrnIndex = i2cbus->scrnIndex;
ddcbus->I2CGetByte = I830SDVODDCI2CGetByte;
ddcbus->I2CPutByte = I830SDVODDCI2CPutByte;