diff options
author | Jean-François Moine <moinejf@free.fr> | 2010-12-25 13:58:45 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 08:17:06 -0200 |
commit | 7a5a414ccb5bfc0fe277ef1a0e9d1e492a6f083c (patch) | |
tree | 760774067d84a4b10caca56a96014a229bfd2d88 /drivers/media | |
parent | 668f44a603dd4b3468cecd7d8d6dc525207db94e (diff) | |
download | op-kernel-dev-7a5a414ccb5bfc0fe277ef1a0e9d1e492a6f083c.zip op-kernel-dev-7a5a414ccb5bfc0fe277ef1a0e9d1e492a6f083c.tar.gz |
[media] gspca - ov519: Bad detection of some ov7670 sensors
Tested-by: jim smyth <jsmyth1969@gmail.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/gspca/ov519.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c index 0ed21db..e1c3b93 100644 --- a/drivers/media/video/gspca/ov519.c +++ b/drivers/media/video/gspca/ov519.c @@ -2676,8 +2676,8 @@ static void ov7xx0_configure(struct sd *sd) high = i2c_r(sd, 0x0a); low = i2c_r(sd, 0x0b); /* info("%x, %x", high, low); */ - if (high == 0x76 && low == 0x73) { - PDEBUG(D_PROBE, "Sensor is an OV7670"); + if (high == 0x76 && (low & 0xf0) == 0x70) { + PDEBUG(D_PROBE, "Sensor is an OV76%02x", low); sd->sensor = SEN_OV7670; } else { PDEBUG(D_PROBE, "Sensor is an OV7610"); |