aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2011-01-11 12:45:03 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-01-19 08:45:32 -0500
commit2a863793beaa0fc9ee7aeb87efe85544a6b129c0 (patch)
tree9316b12b95a707eb5541db2e24d6033d9b0e2805 /include/media
parent45f6f84af3ae9db19f39bc5d0976d626b0ef626e (diff)
[media] v4l2-ctrls: v4l2_ctrl_handler_setup must set is_new to 1
Renamed has_new to is_new. Drivers can use the is_new field to determine if a new value was specified for a control. The v4l2_ctrl_handler_setup() must always set this to 1 since the setup has to force a full update of all controls. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-ctrls.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h
index d69ab4aae032..fcc9a0cf8ff1 100644
--- a/include/media/v4l2-ctrls.h
+++ b/include/media/v4l2-ctrls.h
@@ -53,8 +53,10 @@ struct v4l2_ctrl_ops {
53 * @handler: The handler that owns the control. 53 * @handler: The handler that owns the control.
54 * @cluster: Point to start of cluster array. 54 * @cluster: Point to start of cluster array.
55 * @ncontrols: Number of controls in cluster array. 55 * @ncontrols: Number of controls in cluster array.
56 * @has_new: Internal flag: set when there is a valid new value.
57 * @done: Internal flag: set for each processed control. 56 * @done: Internal flag: set for each processed control.
57 * @is_new: Set when the user specified a new value for this control. It
58 * is also set when called from v4l2_ctrl_handler_setup. Drivers
59 * should never set this flag.
58 * @is_private: If set, then this control is private to its handler and it 60 * @is_private: If set, then this control is private to its handler and it
59 * will not be added to any other handlers. Drivers can set 61 * will not be added to any other handlers. Drivers can set
60 * this flag. 62 * this flag.
@@ -97,9 +99,9 @@ struct v4l2_ctrl {
97 struct v4l2_ctrl_handler *handler; 99 struct v4l2_ctrl_handler *handler;
98 struct v4l2_ctrl **cluster; 100 struct v4l2_ctrl **cluster;
99 unsigned ncontrols; 101 unsigned ncontrols;
100 unsigned int has_new:1;
101 unsigned int done:1; 102 unsigned int done:1;
102 103
104 unsigned int is_new:1;
103 unsigned int is_private:1; 105 unsigned int is_private:1;
104 unsigned int is_volatile:1; 106 unsigned int is_volatile:1;
105 107