diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2011-08-26 07:31:13 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-21 09:52:21 -0300 |
commit | 74a45790861f659058e8f8b565d98e5a1fdd8440 (patch) | |
tree | 753280699fda90996de8006469046876124bea0e /include/linux | |
parent | b57ce4179b502b3f481f7632da20aae3e488e31a (diff) | |
download | linux-3.10-74a45790861f659058e8f8b565d98e5a1fdd8440.tar.gz linux-3.10-74a45790861f659058e8f8b565d98e5a1fdd8440.tar.bz2 linux-3.10-74a45790861f659058e8f8b565d98e5a1fdd8440.zip |
[media] videodev2.h: add V4L2_CTRL_FLAG_VOLATILE
Add a new VOLATILE control flag that is set for volatile controls.
That way applications know whether the value of the control is volatile
(i.e. can change continuously) or not.
Until now this was an internal property, but it is useful to know in
userspace as well.
A typical use case is the gain value when autogain is on. In that case the
hardware will continuously adjust the gain based various environmental
factors.
This patch just adds and documents the flag, it's not yet used.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/videodev2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index a5359c6e757..9d14523487d 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h @@ -1082,6 +1082,7 @@ struct v4l2_querymenu { #define V4L2_CTRL_FLAG_INACTIVE 0x0010 #define V4L2_CTRL_FLAG_SLIDER 0x0020 #define V4L2_CTRL_FLAG_WRITE_ONLY 0x0040 +#define V4L2_CTRL_FLAG_VOLATILE 0x0080 /* Query flag, to be ORed with the control ID */ #define V4L2_CTRL_FLAG_NEXT_CTRL 0x80000000 |