aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-11-10 12:49:43 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 15:41:48 -0500
commit4bdf4a8342ca01ff794f5de8f9766cf15947a2ef (patch)
tree0d2bca74546d642bd50a495b21bfd6d205aed5da /drivers/media/video/gspca
parent89b3d78d153a049924eb0da92caf55dc1e0f5d75 (diff)
V4L/DVB (13421): gspca - main: Clearer message when bandwidth too small.
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')
-rw-r--r--drivers/media/video/gspca/gspca.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index afd99beab30d..6915db2d36db 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -657,15 +657,19 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev)
657 } 657 }
658 if (ret >= 0) 658 if (ret >= 0)
659 break; 659 break;
660 PDEBUG(D_ERR|D_STREAM,
661 "usb_submit_urb alt %d err %d", gspca_dev->alt, ret);
662 gspca_dev->streaming = 0; 660 gspca_dev->streaming = 0;
663 destroy_urbs(gspca_dev); 661 destroy_urbs(gspca_dev);
664 if (ret != -ENOSPC) 662 if (ret != -ENOSPC) {
663 PDEBUG(D_ERR|D_STREAM,
664 "usb_submit_urb alt %d err %d",
665 gspca_dev->alt, ret);
665 goto out; 666 goto out;
667 }
666 668
667 /* the bandwidth is not wide enough 669 /* the bandwidth is not wide enough
668 * negociate or try a lower alternate setting */ 670 * negociate or try a lower alternate setting */
671 PDEBUG(D_ERR|D_STREAM,
672 "bandwidth not wide enough - trying again");
669 msleep(20); /* wait for kill complete */ 673 msleep(20); /* wait for kill complete */
670 if (gspca_dev->sd_desc->isoc_nego) { 674 if (gspca_dev->sd_desc->isoc_nego) {
671 ret = gspca_dev->sd_desc->isoc_nego(gspca_dev); 675 ret = gspca_dev->sd_desc->isoc_nego(gspca_dev);