Re: [Linux-uvc-devel] [SVN] Added preliminary pan/tilt support for Quickcam Orbit MP
Linux UVC driver and tools
Brought to you by:
pinchartl
|
From: michel X. <mx...@ma...> - 2006-02-07 12:43:41
|
Le Lundi 6 Février 2006 21:56, Laurent Pinchart a écrit :
> > Well another question I use :
> > int err =0;
> > queryctrl->id = control;
> > if ((err= ioctl(vd->fd, VIDIOC_QUERYCTRL, queryctrl)) < 0) {
> > printf("ioctl querycontrol error %d \n",err);
> > to verify the control V4L2_CID_PANTILT_RESET exist
> > for some strange reason the ioctl return -EPERM ?
>
> Print errno instead of err. ioctl() returns -1 (== -EPERM) in case of
> failure. The error code is stored in errno.
>
> Laurent Pinchart
errno is set with EIO
--
Michel Xhaard
http://mxhaard.free.fr
|