Brian Johnson schrieb:
Yes I know according to v4l2 the auto exposure control takes 4 different values, with 0 being auto and 1 being manual however, since I've changed the type to a simple boolean value 1 is on and 0 is off. Any program that lets you modify the controls should be using the query control ioctl which should tell it to use a boolean value so ti ought to be ok. The only other i an see as i said would be to define our own custom control.On Sun, Jan 11, 2009 at 5:08 AM, GWater <[email protected]> wrote:Brian Johnson schrieb:Here are several more patches. The first patch is just the one to add support for the om6802 sensor with the addition of code to support hvflip, exposure, gain and auto exposure. The chip doesn't have an autogain function since turning on its AE will also control the gain. Hopefully MBOOMA will get back about whether his camera actually works with this patch. The second patch removes all the defines for the usb VIDs and PIDs. These re only ever used in the device table and really don't provide any useful purupse over just coding the ids in directly. My third patch modifies the AE v4l control to report that is a boolean value. I'm aware that that is somewhat different then the v4l2 specs for this control, however the priority shutter and priority aperture settings don't really make sense for webcams which use an on or off approach for auto exposure. The two options i can think of are either defining our own private auto exposure cid or reusing the one alreayd defined but have the queryctrl ioctl report that it is boolean. Since it seems various other webcam modules in the kernel are doing the second option thats the one i choose.Are you aware that the V4L2 spec defines AE as "on" when 0 is set and "off" when 1 is set? GWater--~--~---------~--~----~------------~-------~--~----~ Lets make microdia webcams plug'n play, (currently plug'n pray) To post to this group, send email to [email protected] Visit us online https://groups.google.com/group/microdia -~----------~----~----~----~------~----~------~--~---
Then please add a comment in an appropriate place to mark the non-V4L2 behaviour and we're all fine.
BTW Scott Bertin (maintainer of v4l2ucp) is planning to release a new v4l2ucp version with the patches necessary for auto-exposure control. However the release may take a while since he's also busy doing other stuff. Anyway - great news, I guess. And if we stumble across more features we want for v4l2ucp I'm sure there's a chance he will pick them up if we mail him a patch.
GWater
signature.asc
Description: OpenPGP digital signature
