diff options
author | Lad, Prabhakar <prabhakar.lad@ti.com> | 2012-09-18 15:54:38 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-05-30 12:02:58 -0300 |
commit | 28c289f3f18a6bead0ba46831977b216dcb81057 (patch) | |
tree | 0c0774fdf8d19d0d4d58991e0c6251e0342be79a /Documentation | |
parent | 4a048199ab3ad7deacc1cb4beac076e4a17fc004 (diff) | |
download | linux-3.10-28c289f3f18a6bead0ba46831977b216dcb81057.tar.gz linux-3.10-28c289f3f18a6bead0ba46831977b216dcb81057.tar.bz2 linux-3.10-28c289f3f18a6bead0ba46831977b216dcb81057.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')
-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[] = { |