mirror of
https://github.com/X11Libre/xf86-video-nv.git
synced 2026-03-24 01:24:21 +00:00
Do E-EDID if built against a server that supports it.
This commit is contained in:
@@ -307,7 +307,11 @@ ProbeDDC(I2CBusPtr i2c)
|
||||
"Probing for EDID on I2C bus %i...\n", bus);
|
||||
pNv->reg[addr/4] = 7;
|
||||
/* Should probably use xf86OutputGetEDID here */
|
||||
#ifdef EDID_COMPLETE_RAWDATA
|
||||
monInfo = xf86DoEEDID(pScrn->scrnIndex, i2c, TRUE);
|
||||
#else
|
||||
monInfo = xf86DoEDID_DDC2(pScrn->scrnIndex, i2c);
|
||||
#endif
|
||||
pNv->reg[addr/4] = 3;
|
||||
|
||||
if(monInfo) {
|
||||
|
||||
@@ -229,7 +229,12 @@ NVProbeDDC (ScrnInfoPtr pScrn, int bus)
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
|
||||
"Probing for EDID on I2C bus %s...\n", bus ? "B" : "A");
|
||||
|
||||
if ((MonInfo = xf86DoEDID_DDC2(pScrn->scrnIndex, pNv->I2C))) {
|
||||
#ifdef EDID_COMPLETE_RAWDATA
|
||||
MonInfo = xf86DoEEDID(pScrn->scrnIndex, pNv->I2C, TRUE);
|
||||
#else
|
||||
MonInfo = xf86DoEDID_DDC2(pScrn->scrnIndex, pNv->I2C);
|
||||
#endif
|
||||
if (MonInfo) {
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
|
||||
"DDC detected a %s:\n", MonInfo->features.input_type ?
|
||||
"DFP" : "CRT");
|
||||
|
||||
@@ -167,7 +167,12 @@ RivaProbeDDC (ScrnInfoPtr pScrn)
|
||||
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Probing for EDID...\n");
|
||||
|
||||
if ((MonInfo = xf86DoEDID_DDC2(pScrn->scrnIndex, pRiva->I2C))) {
|
||||
#ifdef EDID_COMPLETE_RAWDATA
|
||||
MonInfo = xf86DoEEDID(pScrn->scrnIndex, pNv->I2C, TRUE);
|
||||
#else
|
||||
MonInfo = xf86DoEDID_DDC2(pScrn->scrnIndex, pNv->I2C);
|
||||
#endif
|
||||
if (MonInfo) {
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
|
||||
" ... found one\n");
|
||||
xf86PrintEDID( MonInfo );
|
||||
|
||||
Reference in New Issue
Block a user