From: Ricardo Ribalda Date: Fri, 20 Mar 2015 13:45:43 +0000 (-0300) Subject: [media] media: New flag V4L2_CTRL_FLAG_EXECUTE_ON_WRITE X-Git-Tag: firefly_0821_release~176^2~795^2~1066 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b6e5b8f1a90230f922de8af59cdaf1ad83e1ac1e;p=firefly-linux-kernel-4.4.55.git [media] media: New flag V4L2_CTRL_FLAG_EXECUTE_ON_WRITE Create a new flag that represent controls which its value needs to be passed to the driver even if it has not changed. They typically represent actions, like triggering a flash or clearing an error flag. So writing to such a control means some action is executed. Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 47df18f36c4b..810bade873f4 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -1457,6 +1457,7 @@ struct v4l2_querymenu { #define V4L2_CTRL_FLAG_WRITE_ONLY 0x0040 #define V4L2_CTRL_FLAG_VOLATILE 0x0080 #define V4L2_CTRL_FLAG_HAS_PAYLOAD 0x0100 +#define V4L2_CTRL_FLAG_EXECUTE_ON_WRITE 0x0200 /* Query flags, to be ORed with the control ID */ #define V4L2_CTRL_FLAG_NEXT_CTRL 0x80000000