Skip to content

Commit

Permalink
[media] gspca - ov519: Bad detection of some ov7670 sensors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent 668f44a commit 7a5a414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/gspca/ov519.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 7a5a414

Please sign in to comment.