xf86-video-intel: Branch 'modesetting' - src/i830_i2c.c

Keith Packard keithp at kemper.freedesktop.org
Fri Dec 22 09:30:42 EET 2006


 src/i830_i2c.c |    8 ++++++++
 1 files changed, 8 insertions(+)

New commits:
diff-tree c237e930615f1b048895efe988d28503f5d67c37 (from d8c5dba4d797fc50d7b2b5855f34e2d2e2ad3e4f)
Author: Keith Packard <keithp at ukulele.keithp.com>
Date:   Thu Dec 21 23:30:37 2006 -0800

    Use Vesa DDC timeouts for all I2C busses.
    
    The default I2C timeouts are very short, and while most
    modern monitors have no trouble responding at that rate,
    some older ones cannot manage.

diff --git a/src/i830_i2c.c b/src/i830_i2c.c
index 8fd12ea..450f9de 100644
--- a/src/i830_i2c.c
+++ b/src/i830_i2c.c
@@ -365,6 +365,14 @@ I830I2CInit(ScrnInfoPtr pScrn, I2CBusPtr
 #endif
     pI2CBus->DriverPrivate.uval = i2c_reg;
 
+    /* Assume all busses are used for DDCish stuff */
+    
+    pI2CBus->ByteTimeout = 2200; /* VESA DDC spec 3 p. 43 (+10 %) */
+    pI2CBus->StartTimeout = 550;
+    pI2CBus->BitTimeout = 40;
+    pI2CBus->ByteTimeout = 40;
+    pI2CBus->AcknTimeout = 40;
+
     if (!xf86I2CBusInit(pI2CBus))
 	return FALSE;
 



More information about the xorg-commit mailing list