Fix Mac mini crash in DDC mode probe

SDVO on Mac mini trys to get EDID from CRT port, which
failed with recent DVI-I change.
This commit is contained in:
Adam Jackson 2008-10-16 10:24:04 +08:00 committed by Zhenyu Wang
parent 6707371176
commit 986c8df79e
1 changed files with 2 additions and 0 deletions

View File

@ -1495,7 +1495,9 @@ i830_sdvo_get_ddc_modes(xf86OutputPtr output)
intel_output = crt->driver_private;
if (intel_output->type == I830_OUTPUT_ANALOG &&
crt->funcs->detect(crt) == XF86OutputStatusDisconnected) {
I830I2CInit(pScrn, &intel_output->pDDCBus, GPIOA, "CRTDDC_A");
edid_mon = xf86OutputGetEDID(crt, intel_output->pDDCBus);
xf86DestroyI2CBusRec(intel_output->pDDCBus, TRUE, TRUE);
}
if (edid_mon) {
xf86OutputSetEDID(output, edid_mon);