PDA

View Full Version : kernel-2.6.27 vs gspca webcam support


Mack
2008-12-17, 09:47 PM CST
I've been looking forward to gspca merging into the kernel for months. But
maybe this wasn't such a good idea.

I have a philips spc 600 nc webcam that gspcav1 supported and 2.6.27 claims to support:

sonixj 0471:0327 Philips SPC 600 NC

in the kernel docs. But the kernel itself cheerfully reports

Dec 17 20:24:28 tails kernel: usb 2-4: SN9C105 PC Camera Controller detected (vid:pid 0x0471:0x0327)
Dec 17 20:24:28 tails kernel: usb 2-4: No supported image sensor detected for this bridge

Am I missing something, or is this just broken?

Thanks for any suggestions!

Mack
2009-03-16, 04:49 PM CDT
This was broken, but will be fixed in the kernel in due time. See https://bugzilla.redhat.com/show_bug.cgi?id=477111

The deal is that a number of webcams that were supported by gspca v1 are claimed by the
sn9c102 module, even though it doesn't actually support them. If you have another webcam that
used to work with gspca but doesn't, something like this might work for you, too.

Here's how to get you Philips SPC 600 NC working again in the mean time,
red hats off to Hans de Goede:


$ wget http://linuxtv.org/hg/~jfrancois/gspca/archive/tip.tar.gz
$ tar xzf tip.tar.gz
$ cd gspca-*


Edit the file linux/drivers/media/video/gspca/sonixj.c and search for the lines


#if !defined CONFIG_USB_SN9C102 && !defined CONFIG_USB_SN9C102_MODULE
{USB_DEVICE(0x0471, 0x0327), BSI(SN9C105, MI0360, 0x5d)},
#endif


around line 2232, currently.

Remove the first and last of these three lines, leaving only the middle one. Save.and exit. Then just


$ make
# make install


Voila!