diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2016-10-16 07:38:22 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-16 13:06:18 -0200 |
commit | c53a846c48f21c909102677c127ece94b1247668 (patch) | |
tree | e148ad4e9d854400ada1f333a9b15a6b589b3271 /drivers/media/usb/usbtv/usbtv.h | |
parent | 6b2bed891253c08e7f4c17dbd46b71fc87f22eef (diff) | |
download | blackbird-op-linux-c53a846c48f21c909102677c127ece94b1247668.tar.gz blackbird-op-linux-c53a846c48f21c909102677c127ece94b1247668.zip |
[media] usbtv: add video controls
Brightness, Contrast, Hue and Color Saturation are supported.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/usbtv/usbtv.h')
-rw-r--r-- | drivers/media/usb/usbtv/usbtv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/usb/usbtv/usbtv.h b/drivers/media/usb/usbtv/usbtv.h index 011f9fdc77a9..0231e449877e 100644 --- a/drivers/media/usb/usbtv/usbtv.h +++ b/drivers/media/usb/usbtv/usbtv.h @@ -38,6 +38,7 @@ #include <linux/usb.h> #include <media/v4l2-device.h> +#include <media/v4l2-ctrls.h> #include <media/videobuf2-v4l2.h> #include <media/videobuf2-vmalloc.h> @@ -45,6 +46,7 @@ #define USBTV_VIDEO_ENDP 0x81 #define USBTV_AUDIO_ENDP 0x83 #define USBTV_BASE 0xc000 +#define USBTV_CONTROL_REG 11 #define USBTV_REQUEST_REG 12 /* Number of concurrent isochronous urbs submitted. @@ -87,6 +89,7 @@ struct usbtv { /* video */ struct v4l2_device v4l2_dev; + struct v4l2_ctrl_handler ctrl; struct video_device vdev; struct vb2_queue vb2q; struct mutex v4l2_lock; |