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

Wed Jul 17 18:15:05 UTC 2013
m.roth at 5-cent.us <m.roth at 5-cent.us>

Patrick Lists wrote:
> On 07/17/2013 06:54 PM, m.roth at 5-cent.us wrote:
> [snip]
>> Have you tried with mplayer? Do the export, then:
>> mplayer tv:// -tv driver=v4l2:device=/dev/video0:width=320:height=240
>
> Mplayer complained about some missing vdpau lib so that did not work out
> but I tried svv from moinejf.free.fr and got the same results as
> previously described.

Yeah, that's annoying. I solved it by
export LD_PRELOAD=/usr/lib64/libvdpau.so.1:/usr/lib64/libv4l/v4l2convert.so
>
>> 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 can see the plusses fine but maybe something got mangled so here's
> what is prepended with a "+":
>
> if (sd->sensor == SENSOR_POxxxx
> 	 sensor == SENSOR_PO3130NC)
> 		sensor = sd->sensor;
>
> Just checked git.linuxtv.org where the latest vc032x.c code lives and it
> has changed such that this patch no longer applies. My C foo is not at
> kernel driver level so I'll leave it at that and just use one of the
> webcams in my bag.

Sorry I couldn't help more.

     mark