diff options
author | Erik Andr?n <erik.andren@gmail.com> | 2009-01-11 16:52:10 +0100 |
---|---|---|
committer | Erik Andr?n <erik.andren@gmail.com> | 2009-01-11 16:52:10 +0100 |
commit | 01a75ffc4cede4889f8c8a460e898bc8adb5b15e (patch) | |
tree | 293c2e1bbf868fdbed82de63ac746dbaec1efaf4 /linux/drivers/media/video/gspca/m5602 | |
parent | 9b3f212120d0ae53a99328117b273db3f6532446 (diff) | |
download | mediapointer-dvb-s2-01a75ffc4cede4889f8c8a460e898bc8adb5b15e.tar.gz mediapointer-dvb-s2-01a75ffc4cede4889f8c8a460e898bc8adb5b15e.tar.bz2 |
gspca - m5602-po1030: Fix sensor probing.
From: Erik Andr?n <erik.andren@gmail.com>
The po1030 read sensor are currently returning the contents of the address+1 fix the probing of the sensor to cope with this. Obviously this needs to be tracked down and fixed.
Priority: normal
Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/m5602')
-rw-r--r-- | linux/drivers/media/video/gspca/m5602/m5602_po1030.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_po1030.c b/linux/drivers/media/video/gspca/m5602/m5602_po1030.c index 3ecb53c70..a45d55c53 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_po1030.c +++ b/linux/drivers/media/video/gspca/m5602/m5602_po1030.c @@ -157,7 +157,7 @@ static void po1030_dump_registers(struct sd *sd); int po1030_probe(struct sd *sd) { - u8 dev_id_h = 0, dev_id_l = 0, i; + u8 dev_id_h = 0, i; s32 *sensor_settings; if (force_sensor) { @@ -185,10 +185,7 @@ int po1030_probe(struct sd *sd) if (m5602_read_sensor(sd, PO1030_DEVID_H, &dev_id_h, 1)) return -ENODEV; - if (m5602_read_sensor(sd, PO1030_DEVID_L, &dev_id_l, 1)) - return -ENODEV; - - if ((dev_id_h == 0x10) && (dev_id_l == 0x30)) { + if (dev_id_h == 0x30) { info("Detected a po1030 sensor"); goto sensor_found; } |