[CentOS] Back to gspca - semi-[SOLVED]
m.roth at 5-cent.us
m.roth at 5-cent.us
Wed Jul 17 16:54:27 UTC 2013
Patrick Lists wrote:
> 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.
Have you tried with mplayer? Do the export, then:
mplayer tv:// -tv driver=v4l2:device=/dev/video0:width=320:height=240
and see what you see. The idea is to try a different viewer.
>
>>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:
Hmmmm, I'm a bit confused: it looks as though the commented out lines are
identical to the new lines; and as there's no + in front of it, it looks
as though the statement to set sensor was there before... so I don't get
the difference.
I do get the logic: probe the sensor, and if it says it's this, then reset
it to that.
mark
More information about the CentOS
mailing list