* Patch: gspca-zc3xx-pas106b-detect.patch
@ 2008-08-07 10:21 Hans de Goede
0 siblings, 0 replies; only message in thread
From: Hans de Goede @ 2008-08-07 10:21 UTC (permalink / raw)
To: Jean-Francois Moine
Cc: Linux and Kernel Video, SPCA50x Linux Device Driver Development
[-- Attachment #1: Type: text/plain, Size: 493 bytes --]
Hi,
This patch moves the detection of the 2wr SIF pas106b sensor to before detecing
other 2 wire sensors (as it was done with gspcav1) without this the pas106b
gets misdetected as an HDCS2020b.
This makes my Philips SPC 200NC cam work, but unfortunately the picture is
upside down (same with gspcav1). While experimenting to try to fix this I've
found the meaning of one pas106b register and a comment now documents this.
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Regards,
Hans
[-- Attachment #2: gspca-zc3xx-pas106b-detect.patch --]
[-- Type: text/x-patch, Size: 1321 bytes --]
This patch moves the detection of the 2wr SIF pas106b sensor to before detecing
other 2 wire sensors (as it was done with gspcav1) without this the pas106b
gets misdetected as an HDCS2020b.
This makes my Philips SPC 200NC cam work, but unfortunately the picture is
upside down (same with gspcav1). While experimenting to try to fix this I've
found the meaning of one pas106b register and a comment now documents this.
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
diff -r 380c5715fd90 linux/drivers/media/video/gspca/zc3xx.c
--- a/linux/drivers/media/video/gspca/zc3xx.c Wed Aug 06 10:49:16 2008 +0200
+++ b/linux/drivers/media/video/gspca/zc3xx.c Thu Aug 07 12:18:01 2008 +0200
@@ -4134,6 +4134,7 @@
{0xaa, 0x0c, 0x0005},
{0xaa, 0x0d, 0x0000},
{0xaa, 0x0e, 0x0002},
+/* {0xaa, 0x11, 0x0000}, seems to control exposure (0 = max exp) */
{0xaa, 0x14, 0x0081},
/* Other registors */
@@ -6972,6 +6973,10 @@
/* may probe but with write in reg 0x0010 */
return -1; /* don't probe */
}
+ sensor = sif_probe(gspca_dev);
+ if (sensor >= 0)
+ return sensor;
+
sensor = vga_2wr_probe(gspca_dev);
if (sensor >= 0) {
if (sensor < 0x7600)
@@ -6984,7 +6989,7 @@
return sensor;
return sensor2;
}
- return sif_probe(gspca_dev);
+ return -1;
}
/* this function is called at probe time */
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-07 10:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-07 10:21 Patch: gspca-zc3xx-pas106b-detect.patch Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox