]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/media/v4l2-ctrls.h
[media] v4l2-ctrl: Add helper function for the controls range update
authorSylwester Nawrocki <sylvester.nawrocki@gmail.com>
Sat, 19 Jan 2013 18:51:55 +0000 (15:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 17:04:06 +0000 (15:04 -0200)
commit2ccbe779bcdee130ea7f1525670dc9d60318a981
treef667acca6ab42a0565b062616b3a6f176508e874
parentaf9bb33aa33d4beb5d0ac505d48530a56856f66c
[media] v4l2-ctrl: Add helper function for the controls range update

This patch adds a helper function that allows to modify range,
i.e. minimum, maximum, step and default value of a v4l2 control,
after the control has been created and initialized. This is helpful
in situations when range of a control depends on user configurable
parameters, e.g. camera sensor absolute exposure time depending on
an output image resolution and frame rate.
v4l2_ctrl_modify_range() function allows to modify range of an
INTEGER, BOOL, MENU, INTEGER_MENU and BITMASK type controls.
Based on a patch from Hans Verkuil http://patchwork.linuxtv.org/patch/8654.

Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Documentation/DocBook/media/v4l/compat.xml
Documentation/DocBook/media/v4l/v4l2.xml
Documentation/DocBook/media/v4l/vidioc-dqevent.xml
drivers/media/v4l2-core/v4l2-ctrls.c
include/media/v4l2-ctrls.h
include/uapi/linux/videodev2.h