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: Laurent P. <lau...@sk...> - 2006-02-06 21:55:29
|
> 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
|