V4L/DVB (11715): gspca - main: Set the number of packets per ISOC message.
[safe/jmp/linux-2.6] / drivers / media / video / gspca / gspca.h
index 85bb0fe..bd1faff 100644 (file)
@@ -44,8 +44,6 @@ extern int gspca_debug;
 #define GSPCA_MAX_FRAMES 16    /* maximum number of video frame buffers */
 /* image transfers */
 #define MAX_NURBS 4            /* max number of URBs */
-#define ISO_MAX_PKT 32         /* max number of packets in an ISOC transfer */
-#define ISO_MAX_SIZE 0x8000    /* max size of one URB buffer (32 Kb) */
 
 /* device information - set at probe time */
 struct cam {
@@ -57,6 +55,8 @@ struct cam {
                                 * - when 0 and bulk_size != 0 means
                                 *   1 URB and submit done by subdriver */
        u8 bulk;                /* image transfer by 0:isoc / 1:bulk */
+       u8 npkt;                /* number of packets in an ISOC message
+                                * 0 is the default value: 32 packets */
        u32 input_flags;        /* value for ENUM_INPUT status flags */
 };