]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (8637): v4l2: add v4l2_ctrl_query_menu_valid_items support function
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 8 Aug 2008 11:34:19 +0000 (08:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:36:48 +0000 (09:36 -0200)
commit1e55126666944c83bf98243564e25302f363e2a4
treedd86e6c7cb97d5fd49f739dffe42cf7666e7332b
parent69028d7096a6092812f0482833f0820593f1cafd
V4L/DVB (8637): v4l2: add v4l2_ctrl_query_menu_valid_items support function

v4l2_ctrl_query_menu_valid_items() makes it easy to handle control menus
that have a lot of invalid 'holes'. For example, many MPEG encoders only
support a limited subset of audio bitrates. In that case a driver can
specify an array listing the set of valid bitrates and pass that to
this function.

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