aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-04-25 12:29:01 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:20:55 -0400
commit49cb6b046da812d9c1d1f8c958b741126ee4eece (patch)
tree40a4dd9950286cfea562e02bd3325e53e53c7879 /drivers/media/video/gspca/gspca.c
parent59746e1390835ce889e56fa4e792019462465623 (diff)
V4L/DVB (11715): gspca - main: Set the number of packets per ISOC message.
The number of packets per isochronous message may now be set by the subdrivers (default value 32). 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.c')
-rw-r--r--drivers/media/video/gspca/gspca.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index ebeae6bdacc8..ae0e14033d66 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -513,9 +513,9 @@ static int create_urbs(struct gspca_dev *gspca_dev,
513 513
514 /* See paragraph 5.9 / table 5-11 of the usb 2.0 spec. */ 514 /* See paragraph 5.9 / table 5-11 of the usb 2.0 spec. */
515 psize = (psize & 0x07ff) * (1 + ((psize >> 11) & 3)); 515 psize = (psize & 0x07ff) * (1 + ((psize >> 11) & 3));
516 npkt = ISO_MAX_SIZE / psize; 516 npkt = gspca_dev->cam.npkt;
517 if (npkt > ISO_MAX_PKT) 517 if (npkt == 0)
518 npkt = ISO_MAX_PKT; 518 npkt = 32; /* default value */
519 bsize = psize * npkt; 519 bsize = psize * npkt;
520 PDEBUG(D_STREAM, 520 PDEBUG(D_STREAM,
521 "isoc %d pkts size %d = bsize:%d", 521 "isoc %d pkts size %d = bsize:%d",