This is an experimental patch and is not for submission. If you are
having problems getting the OV511 driver to detect your camera's sensor,
try this patch. If you are still having problems with detection, please
send me the output from /var/log/messages.
---
Mark McClelland
[EMAIL PROTECTED]
diff -Naur linux-2.4.0-test2-ac2-orig_ov511_1.18/drivers/usb/ov511.c
linux/drivers/usb/ov511.c
--- linux-2.4.0-test2-ac2-orig_ov511_1.18/drivers/usb/ov511.c Thu Jun 29 03:47:13
2000
+++ linux/drivers/usb/ov511.c Thu Jun 29 03:48:27 2000
@@ -30,7 +30,7 @@
* Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-static const char version[] = "1.18";
+static const char version[] = "1.19experimental";
#define __NO_VERSION__
@@ -2533,13 +2533,17 @@
for (i = 0, success = 0; i < i2c_detect_tries && !success; i++) {
if ((ov511_i2c_read(dev, OV7610_REG_ID_HIGH) == 0x7F) &&
- (ov511_i2c_read(dev, OV7610_REG_ID_LOW) == 0xA2))
+ (ov511_i2c_read(dev, OV7610_REG_ID_LOW) == 0xA2)) {
success = 1;
+ continue;
+ }
- /* Dummy read to sync I2C */
- if (ov511_i2c_read(dev, 0x00) < 0) return -1;
+ /* Reset the 76xx */
+ if (ov511_i2c_write(dev, 0x12, 0x80) < 0) return -1;
/* Wait for it to initialize */
schedule_timeout (1 + 150 * HZ / 1000);
+ /* Dummy read to sync I2C */
+ if (ov511_i2c_read(dev, 0x00) < 0) return -1;
}
if (success) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]