diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-09-29 04:57:32 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:37:12 -0400 |
commit | 95d9142c8b250b2ce0e0a283fdf54d899dcc4f3e (patch) | |
tree | afd70aa9b5be5076e43d167dd9fe42784287ae51 /drivers/media/video/gspca/gspca.h | |
parent | 6b060ffea0722cfe4f5156a73a6424130d3d804a (diff) |
V4L/DVB (9087): gspca: Image transfer by bulk uses altsetting 0 with any buffer size.
- gspca_dev field 'bulk_size' added.
- when only one altsetting usable, do image transfer by bulk.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.h')
-rw-r--r-- | drivers/media/video/gspca/gspca.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h index 192dffdcd9cd..f9006542c58f 100644 --- a/drivers/media/video/gspca/gspca.h +++ b/drivers/media/video/gspca/gspca.h | |||
@@ -56,6 +56,7 @@ extern int gspca_debug; | |||
56 | 56 | ||
57 | /* device information - set at probe time */ | 57 | /* device information - set at probe time */ |
58 | struct cam { | 58 | struct cam { |
59 | int bulk_size; /* buffer size when image transfer by bulk */ | ||
59 | struct v4l2_pix_format *cam_mode; /* size nmodes */ | 60 | struct v4l2_pix_format *cam_mode; /* size nmodes */ |
60 | char nmodes; | 61 | char nmodes; |
61 | __u8 epaddr; | 62 | __u8 epaddr; |
@@ -144,7 +145,6 @@ struct gspca_dev { | |||
144 | 145 | ||
145 | __u8 iface; /* USB interface number */ | 146 | __u8 iface; /* USB interface number */ |
146 | __u8 alt; /* USB alternate setting */ | 147 | __u8 alt; /* USB alternate setting */ |
147 | __u8 bulk; /* image transfer by isoc (0) or bulk (1) */ | ||
148 | __u8 curr_mode; /* current camera mode */ | 148 | __u8 curr_mode; /* current camera mode */ |
149 | __u32 pixfmt; /* current mode parameters */ | 149 | __u32 pixfmt; /* current mode parameters */ |
150 | __u16 width; | 150 | __u16 width; |