projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
668f44a
)
[media] gspca - ov519: Bad detection of some ov7670 sensors
author
Jean-François Moine
<moinejf@free.fr>
Sat, 25 Dec 2010 16:58:45 +0000
(13:58 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 29 Dec 2010 10:17:06 +0000
(08:17 -0200)
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>
drivers/media/video/gspca/ov519.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/gspca/ov519.c
b/drivers/media/video/gspca/ov519.c
index 0ed21dbb46cdd88e9b90f9239e5017a7228964c0..e1c3b9328aceb9c0ae1de6df55ad608e102f47ee 100644
(file)
--- 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 OV76
70"
);
+ 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");