diff options
author | Lad, Prabhakar <prabhakar.lad@ti.com> | 2012-09-18 15:54:38 -0300 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:56:05 +0900 |
commit | 957f13395899a9bafe81ccb246c831b52858cfea (patch) | |
tree | 8cd2cc318029a848c2f09b28bba72e05d48790ee /Documentation/video4linux | |
parent | 08f3b3cf9aa3cd4369fef948e4f85dcfc014f56d (diff) | |
download | linux-3.10-957f13395899a9bafe81ccb246c831b52858cfea.tar.gz linux-3.10-957f13395899a9bafe81ccb246c831b52858cfea.tar.bz2 linux-3.10-957f13395899a9bafe81ccb246c831b52858cfea.zip |
upstream: [media] media: v4l2-ctrl: add a helper function to add standard control with driver specific menu
Add helper function v4l2_ctrl_new_std_menu_items(), which adds
a standard menu control, with driver specific menu.
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'Documentation/video4linux')
-rw-r--r-- | Documentation/video4linux/v4l2-controls.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/video4linux/v4l2-controls.txt b/Documentation/video4linux/v4l2-controls.txt index 06cf3ac8363..7d2b3881dbb 100644 --- a/Documentation/video4linux/v4l2-controls.txt +++ b/Documentation/video4linux/v4l2-controls.txt @@ -145,6 +145,14 @@ v4l2_ctrl_new_int_menu: const struct v4l2_ctrl_ops *ops, u32 id, s32 max, s32 def, const s64 *qmenu_int); +Standard menu controls with a driver specific menu are added by calling +v4l2_ctrl_new_std_menu_items: + + struct v4l2_ctrl *v4l2_ctrl_new_std_menu_items( + struct v4l2_ctrl_handler *hdl, + const struct v4l2_ctrl_ops *ops, u32 id, s32 max, + s32 skip_mask, s32 def, const char * const *qmenu); + These functions are typically called right after the v4l2_ctrl_handler_init: static const s64 exp_bias_qmenu[] = { |