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 13:25:26
|
Le Mardi 7 Février 2006 13:09, 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.
> >
> > errno is set with EIO
>
> Could you apply this patch and tell me what you get in the kernel log ?
>
> Laurent Pinchart
>
> Index: uvcvideo.c
> ===================================================================
> --- uvcvideo.c (revision 18)
> +++ uvcvideo.c (working copy)
> @@ -1362,8 +1362,8 @@
> unit << 8 | intfnum, data, size, UVC_CTRL_TIMEOUT);
>
> if (ret != size) {
> - uvc_printk(KERN_ERR, "Failed to query UVC control %u "
> - "(unit %u) : %d.\n", cs, unit, ret);
> + uvc_printk(KERN_ERR, "Failed to query (%u) UVC control %u "
> + "(unit %u) : %d.\n", query, cs, unit, ret);
> return -EIO;
> }
> _______________________________________________
> Linux-uvc-devel mailing list
> Lin...@li...
> http://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Feb 7 13:16:26 linux kernel: usbcore: deregistering driver usbvideo
Feb 7 13:16:33 linux kernel: uvcvideo: Found UVC 1.00 device <unnamed>
(046d:08c2)
Feb 7 13:16:33 linux kernel: usbcore: registered new driver usbvideo
Feb 7 13:16:33 linux kernel: USB Video Class driver (v0.1.0)
Feb 7 13:16:57 linux kernel: uvcvideo: Failed to query (132) UVC control 1
(unit 9) : 1.
Feb 7 13:16:57 linux syslog-ng[3019]: STATS: dropped 0
Feb 7 13:17:00 linux kernel: uvcvideo: Failed to query (132) UVC control 1
(unit 9) : 1.
--
Michel Xhaard
http://mxhaard.free.fr
|