diff options
Diffstat (limited to 'include/media/v4l2-ctrls.h')
-rw-r--r-- | include/media/v4l2-ctrls.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h index 801adb466bd2..96509119f28f 100644 --- a/include/media/v4l2-ctrls.h +++ b/include/media/v4l2-ctrls.h | |||
@@ -351,6 +351,29 @@ struct v4l2_ctrl *v4l2_ctrl_new_std_menu(struct v4l2_ctrl_handler *hdl, | |||
351 | const struct v4l2_ctrl_ops *ops, | 351 | const struct v4l2_ctrl_ops *ops, |
352 | u32 id, s32 max, s32 mask, s32 def); | 352 | u32 id, s32 max, s32 mask, s32 def); |
353 | 353 | ||
354 | /** v4l2_ctrl_new_std_menu_items() - Create a new standard V4L2 menu control | ||
355 | * with driver specific menu. | ||
356 | * @hdl: The control handler. | ||
357 | * @ops: The control ops. | ||
358 | * @id: The control ID. | ||
359 | * @max: The control's maximum value. | ||
360 | * @mask: The control's skip mask for menu controls. This makes it | ||
361 | * easy to skip menu items that are not valid. If bit X is set, | ||
362 | * then menu item X is skipped. Of course, this only works for | ||
363 | * menus with <= 32 menu items. There are no menus that come | ||
364 | * close to that number, so this is OK. Should we ever need more, | ||
365 | * then this will have to be extended to a u64 or a bit array. | ||
366 | * @def: The control's default value. | ||
367 | * @qmenu: The new menu. | ||
368 | * | ||
369 | * Same as v4l2_ctrl_new_std_menu(), but @qmenu will be the driver specific | ||
370 | * menu of this control. | ||
371 | * | ||
372 | */ | ||
373 | struct v4l2_ctrl *v4l2_ctrl_new_std_menu_items(struct v4l2_ctrl_handler *hdl, | ||
374 | const struct v4l2_ctrl_ops *ops, u32 id, s32 max, | ||
375 | s32 mask, s32 def, const char * const *qmenu); | ||
376 | |||
354 | /** v4l2_ctrl_new_int_menu() - Create a new standard V4L2 integer menu control. | 377 | /** v4l2_ctrl_new_int_menu() - Create a new standard V4L2 integer menu control. |
355 | * @hdl: The control handler. | 378 | * @hdl: The control handler. |
356 | * @ops: The control ops. | 379 | * @ops: The control ops. |