Hi, On Tuesday 10 August 2010 04:15:21 linux newbie wrote: > It seems, the macro V4L2_EXPOSURE_MANUAL is set to 1, but in the > uvc_ctrl.c it points to AUTO. > Hence for manual exposure control, I need to set 0. Is my understanding > correct?
No, you should use V4L2_EXPOSURE_MANUAL. Array indexes in C are zero-based, so V4L2_EXPOSURE_MANUAL will correctly select manual exposure in the exposure_auto_controls array in uvc_ctrl.c. Can you try all values from 0 to 3 and see what VIDIOC_S_CTRL returns ? When it returns an error please check the kernel log (with dmesg) to see if the driver prints any additional information. > On Tue, Aug 10, 2010 at 10:42 AM, linux newbie <linux.newbi...@gmail.com> wrote: > > Hi, > > > > * I am using microsoft lifecam in my embedded target running linux. > > * I want to disable auto exposure. > > * VIDIOC_G_CTRL of id V4L2_CID_EXPOSURE_AUTO returns value of 3 > > * If I do VIDIOC_S_CTRL with value 1 (V4L2_EXPOSURE_MANUAL) returns -1. > > > > Do I need to change other any settings before modifying > > V4L2_CID_EXPOSURE_AUTO?? In theory, no. -- Regards, Laurent Pinchart _______________________________________________ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel