diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-09-04 06:01:50 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:58 -0400 |
commit | 0be01004ddc0694d8c592fff05ab88dabd45f476 (patch) | |
tree | 0166291c8d3e5c443adb3229c323a64f9bd662ee /drivers/media/video/gspca/gspca.h | |
parent | d45b9b8ab43c8973a9630ac54f4ede6c3e009f9e (diff) |
V4L/DVB (8910): gspca: Add support of image transfer by bulk and minor change.
- image transfer by bulk
- set the max number of transfer URS's to 4 (was 16)
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h index c17625cff9ba..78a35a88cf97 100644 --- a/drivers/media/video/gspca/gspca.h +++ b/drivers/media/video/gspca/gspca.h | |||
@@ -49,8 +49,8 @@ extern int gspca_debug; | |||
49 | } while (0) | 49 | } while (0) |
50 | 50 | ||
51 | #define GSPCA_MAX_FRAMES 16 /* maximum number of video frame buffers */ | 51 | #define GSPCA_MAX_FRAMES 16 /* maximum number of video frame buffers */ |
52 | /* ISOC transfers */ | 52 | /* image transfers */ |
53 | #define MAX_NURBS 16 /* max number of URBs */ | 53 | #define MAX_NURBS 4 /* max number of URBs */ |
54 | #define ISO_MAX_PKT 32 /* max number of packets in an ISOC transfer */ | 54 | #define ISO_MAX_PKT 32 /* max number of packets in an ISOC transfer */ |
55 | #define ISO_MAX_SIZE 0x8000 /* max size of one URB buffer (32 Kb) */ | 55 | #define ISO_MAX_SIZE 0x8000 /* max size of one URB buffer (32 Kb) */ |
56 | 56 | ||
@@ -143,6 +143,7 @@ struct gspca_dev { | |||
143 | 143 | ||
144 | __u8 iface; /* USB interface number */ | 144 | __u8 iface; /* USB interface number */ |
145 | __u8 alt; /* USB alternate setting */ | 145 | __u8 alt; /* USB alternate setting */ |
146 | __u8 bulk; /* image transfer by isoc (0) or bulk (1) */ | ||
146 | __u8 curr_mode; /* current camera mode */ | 147 | __u8 curr_mode; /* current camera mode */ |
147 | __u32 pixfmt; /* current mode parameters */ | 148 | __u32 pixfmt; /* current mode parameters */ |
148 | __u16 width; | 149 | __u16 width; |