[PD] uvc class webcam and Gem, pdp, (v4l)

Yves Degoyon ydegoyon at free.fr
Thu Sep 27 16:44:46 CEST 2007


ola

>
>Pdp gives me very the same error:
>
>---------------------------------------------------------
>pdp_v4l: cap: name UVC Camera (041e:4058) type 1 channels 1 maxw 1600 maxh 1200 minw 48 minh 32
>pdp_v4l: picture: brightness 33825 depth 16 palette 8
>VDIOCGCHAN: Invalid argument
>pdp_v4l: auto open failed
>pdp_v4l: no device opened
>pdp_v4l: attempting auto open
>pdp_v4l: opening /dev/video0
>
>---------------------------------------------------------
>
>  
>
could be that the driver doesn't return the right number of channels here.

did you compile pdp sources?
in this case, in this part of the code :


/* get channel info */
for (i = 0; i < x->x_vcap.channels; i++)
{
x->x_vchannel.channel = i;
if (ioctl(x->x_tvfd, VIDIOCGCHAN, &x->x_vchannel) < 0)
{
perror("VDIOCGCHAN");
goto closit;
}
post("pdp_v4l: channel %d name %s type %d flags %d",
x->x_vchannel.channel, x->x_vchannel.name,
x->x_vchannel.type, x->x_vchannel.flags);
}

and comment "goto closit" like this :

// goto closit

mmm, i dunno if that can help,
suerte,
sevy





More information about the Pd-list mailing list