This patch makes the mt9v112 probe function use the i2c address of 0x48 instead of 0c5d. It also will output the the serial number that the sensor actually uses so you can check to see what the sensor actually is if this doesn't work right. It will say something like "Micron Sensor ID: <number>" in your dmesg log.
On Wed, Mar 11, 2009 at 8:57 AM, emeliot <[email protected]> wrote: > > Ok so I hope that you find a solution and every things will be work > fine. Thanks for your help !! > > > --~--~---------~--~----~------------~-------~--~----~ Lets make microdia webcams plug'n play, (currently plug'n pray) To post to this group, send email to [email protected] Visit us online https://groups.google.com/group/microdia -~----------~----~----~----~------~----~------~--~---
From 6e5778ffedfa99fe88d0d6cc1a94f75239855f18 Mon Sep 17 00:00:00 2001 From: Brian Johnson <[email protected]> Date: Wed, 11 Mar 2009 12:28:43 -0400 Subject: [PATCH] set mt9v112 probe function to use i2c address of 0x48 --- micron.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/micron.c b/micron.c index 9e3e479..91e1380 100644 --- a/micron.c +++ b/micron.c @@ -540,7 +540,7 @@ int mt9v112_probe(struct usb_sn9c20x *dev) { int ret; __u16 buf; - dev->camera.address = 0x5d; + dev->camera.address = 0x48; /* Select address-space: sensor */ buf = 0x00; ret = sn9c20x_write_i2c_data16(dev, 1, 0xf0, &buf); @@ -548,6 +548,7 @@ int mt9v112_probe(struct usb_sn9c20x *dev) return ret; ret = sn9c20x_read_i2c_data16(dev, 1, 0x00, &buf); + UDIA_INFO("Micron Sensor ID: 0x%X\n", buf); if ((ret == 0) && (buf == 0x1229)) return MT9V112_SENSOR; -- 1.5.6.3
