diff options
author | Keith Packard <keithp@neko.keithp.com> | 2007-03-17 20:14:05 -0700 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2007-03-17 20:14:05 -0700 |
commit | 0f80340a526b2838b9f39145f29941222e84184b (patch) | |
tree | 6c4716a6f753765bc97188286862ad00e92370ef | |
parent | 52fccb9d9fdbb1c9dc3f5225600004cd94e42a4a (diff) |
Slow down DDC I2C bus using a RiseFallTime of 20us for old monitors.
This time value makes the bus run slowly enough for even the least reliable
of monitors. Thanks to Pavel Troller for finding the necessary change.
-rw-r--r-- | hw/xfree86/ddc/xf86DDC.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/xfree86/ddc/xf86DDC.c b/hw/xfree86/ddc/xf86DDC.c index 0f24c520e..8080c8d2a 100644 --- a/hw/xfree86/ddc/xf86DDC.c +++ b/hw/xfree86/ddc/xf86DDC.c @@ -337,6 +337,12 @@ DDCRead_DDC2(int scrnIndex, I2CBusPtr pBus, int start, int len) unsigned char *R_Buffer; int i; + /* + * Slow down the bus so that older monitors don't + * miss things. + */ + pBus->RiseFallTime = 20; + if (!(dev = xf86I2CFindDev(pBus, 0x00A0))) { dev = xf86CreateI2CDevRec(); dev->DevName = "ddc2"; |