V4L/DVB (4190): Add helper functions for control processing to v4l2-common.
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 18 Jun 2006 17:11:08 +0000 (14:11 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 05:05:21 +0000 (02:05 -0300)
commit9cb2318b885d2039eeb3eb5394fa215046be058f
tree2289616dbbbd60ac93ce56e43c0eaec27bf65604
parent0597691456cf3b08974d9949e4caa830e1d3c520
V4L/DVB (4190): Add helper functions for control processing to v4l2-common.

Control processing is often duplicated in the various drivers. Unfortunately,
simple things like the names of controls are often different between drivers,
even though it is the same controls. Adding in the new extended controls and
the need for having control helper functions became apparent.
Several functions have now been added to v4l2-common to do things like
filling the v4l2_queryctrl and v4l2_querymenu structs, to check for
valid control input and to move to the next control when enumerating
over all controls.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/v4l2-common.c
include/media/v4l2-common.h