[CentOS] Back to gspca - semi-[SOLVED]

Wed Jul 17 16:07:46 UTC 2013
Patrick Lists <centos-list at puzzled.xs4all.nl>

On 07/17/2013 05:40 PM, m.roth at 5-cent.us wrote:
[snip]
> Which gspca driver is installed (lsmod | grep gspca)? And it might require
> exporting LD_PRELOAD with v4lcompat.so or v4l2convert.so.

It's the gspca_vc032x module. LD_PRELOADING either lib did not make a 
difference and Cheese spits out an internal data flow error when started 
from the CLI.

>From digging in my mail archives the error in /var/log/messages was:
Jan  3 17:37:10 luna kernel: [ 7358.087971] gspca: ISOC data error: [62] 
len=0, status=-71

That was on Fedora 14 with kernel 2.6.35.10-74.fc14.x86_64 and the id of 
the webcam is: Logitech Orbicam 046d:0896

The patch that fixed it is:

$ cat gspca-sensor.patch
diff -uNr gspca-2.13.3.org/build/vc032x.c gspca-2.13.3/build/vc032x.c
--- gspca-2.13.3.org/build/vc032x.c	2011-01-15 09:46:40.000000000 +0100
+++ gspca-2.13.3/build/vc032x.c	2011-07-28 18:16:41.138640918 +0200
@@ -3716,9 +3716,9 @@

  	sensor = vc032x_probe_sensor(gspca_dev);
  //vish
-//	if (sd->sensor == SENSOR_POxxxx
-//	 && sensor == SENSOR_PO3130NC)
-//		sensor = sd->sensor;
+	if (sd->sensor == SENSOR_POxxxx
+	 && sensor == SENSOR_PO3130NC)
+		sensor = sd->sensor;

  	switch (sensor) {
  	case -1:


Regards,
Patrick