diff options
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 10 |
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); |