Hi Ben,

On Friday 29 April 2011 18:07:03 Ben Mesander wrote:
> Hi Laurent,
> 
>   Thank you for explaining the history behind some of the #define confusion
> I've seen between different versions of V4L2 and uvcvideo.
> 
>   I eventually determined the following experimentally - the uvcvideo
> driver, at least for my camera (a logitech, USB id 046d:0809) supports two
> of the four possible exposure modes. The others return I/O error - which I
> don't understand, if the camera doesn't support them, shouldn't it be
> EINVAL instead?

It should actually be -ERANGE. That will be fixed in 3.0.

> enum  v4l2_exposure_auto_type {
>       V4L2_EXPOSURE_MANUAL = 0, /* Gives I/O error */
>       V4L2_EXPOSURE_AUTO = 1, /* works */
>       V4L2_EXPOSURE_SHUTTER_PRIORITY = 2, /* Gives I/O error */
>       V4L2_EXPOSURE_APERTURE_PRIORITY = 3 /* works */
> };
> 
> Fortunately, the mode I wanted, aperture priority, works.

-- 
Regards,

Laurent Pinchart
_______________________________________________
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to