aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video
diff options
context:
space:
mode:
authorJean-Fran├žois Moine <moinejf@free.fr>2010-12-25 13:58:45 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 08:17:06 -0200
commit7a5a414ccb5bfc0fe277ef1a0e9d1e492a6f083c (patch)
tree760774067d84a4b10caca56a96014a229bfd2d88 /drivers/media/video
parent668f44a603dd4b3468cecd7d8d6dc525207db94e (diff)
downloadlinux-2.6.38-lt-ux500-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/video')
-rw-r--r--drivers/media/video/gspca/ov519.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c
index 0ed21dbb46c..e1c3b9328ac 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");