V4L2 *STD ioctls with webcam drivers
- From: Mauro Carvalho Chehab <mauro_chehab (at) yahoo.com.br>
- Date: Thu, 09 Mar 2006 07:23:27 -0300
Em Qua, 2006-03-01 às 17:12 +0100, Laurent Pinchart escreveu:
> Hi Eduardo,
>
> > I would like to know what the correct implementation of the *STD ioctls
> > in V4L2 webcam drivers is.
> >
> > Either they return -EINVAL or they get implemented like the attached
> > patch in the http://linux-uvc.berlios.de/ USB driver or like the
> > http://www.saillard.org/linux/pwc/ driver.
> >
> > I'm asking because different USB webcam drivers implement different code
> > and I think a consensus should be reached if we want all the
> > applications working properly with different drivers.
>
> Thanks for raising the issue here, I was planning to send a mail myself but
> I'm unfortunately a bit busy at the moment.
>
> As I already stated, my understanding is that the V4L2 spec doesn't make those
> ioctls mandatory. Returning -EINVAL is the proper way to deal with the *STD
> ioctls when they are not supported by the driver.
IMHO, returning -EINVAL is the better for non-supported ioctls.
>
Cheers,
Mauro.
_______________________________________________________
Yahoo! doce lar. Faça do Yahoo! sua homepage.
http://br.yahoo.com/homepageset.html
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list