On 11/24/2011 07:24 AM, Rémi Denis-Courmont wrote: > On Wed, 23 Nov 2011 23:26:22 +0100, Sylwester Nawrocki <snjw23@xxxxxxxxx> > wrote: >> I don't seem to find a way to implement this in current v4l2 control >> framework. Such functionality isn't there, or is it ? > > You can use the menu control type, but you will need to remap the control > values so they are continuous. Yes, but what I'm missing is a method for the drivers to inform the application how the mapping looks like. Something like custom queryctrl for standard control CID. So for instance if we have a standard control V4L2_CID_CAMERA_ISO, two devices could support different series of values, e.g. 50, 200, 400, 800, .. 100, 180, 300, 600, ... Currently the menu items are hard coded in the kernel for standard controls, and AFAIU we can only query the control names. In fact the continuous enumeration in the driver might do, which would be then mapped to register values. But the meaning of this values need to be made known to the applications. -- Thanks, Sylwester -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html