diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-03-19 16:30:50 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-15 02:57:10 +0400 |
commit | 99c77aa4281c41fab255a4eb25ccc36a8c2e113d (patch) | |
tree | af22a4c6b5bdeab7fb24f6d7f33181aa88cb96ef /drivers/media/usb/hdpvr/hdpvr.h | |
parent | a7b74bd82a26379495e0e727d2c0fa9b0b97d917 (diff) | |
download | linux-99c77aa4281c41fab255a4eb25ccc36a8c2e113d.tar.xz |
[media] hdpvr: convert to the control framework
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/hdpvr/hdpvr.h')
-rw-r--r-- | drivers/media/usb/hdpvr/hdpvr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/usb/hdpvr/hdpvr.h b/drivers/media/usb/hdpvr/hdpvr.h index fea3c6926997..2a4deab70762 100644 --- a/drivers/media/usb/hdpvr/hdpvr.h +++ b/drivers/media/usb/hdpvr/hdpvr.h @@ -16,6 +16,7 @@ #include <linux/videodev2.h> #include <media/v4l2-device.h> +#include <media/v4l2-ctrls.h> #include <media/ir-kbd-i2c.h> #define HDPVR_MAX 8 @@ -65,10 +66,17 @@ struct hdpvr_options { struct hdpvr_device { /* the v4l device for this device */ struct video_device *video_dev; + /* the control handler for this device */ + struct v4l2_ctrl_handler hdl; /* the usb device for this device */ struct usb_device *udev; /* v4l2-device unused */ struct v4l2_device v4l2_dev; + struct { /* video mode/bitrate control cluster */ + struct v4l2_ctrl *video_mode; + struct v4l2_ctrl *video_bitrate; + struct v4l2_ctrl *video_bitrate_peak; + }; /* the max packet size of the bulk endpoint */ size_t bulk_in_size; |