dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Jean-Francois Moine 2009-11-10 14:49:43 -03:00 committed by Mauro Carvalho Chehab
parent 89b3d78d15
commit 4bdf4a8342
1 changed files with 7 additions and 3 deletions

View File

@ -657,15 +657,19 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev)
}
if (ret >= 0)
break;
PDEBUG(D_ERR|D_STREAM,
"usb_submit_urb alt %d err %d", gspca_dev->alt, ret);
gspca_dev->streaming = 0;
destroy_urbs(gspca_dev);
if (ret != -ENOSPC)
if (ret != -ENOSPC) {
PDEBUG(D_ERR|D_STREAM,
"usb_submit_urb alt %d err %d",
gspca_dev->alt, ret);
goto out;
}
/* the bandwidth is not wide enough
* negociate or try a lower alternate setting */
PDEBUG(D_ERR|D_STREAM,
"bandwidth not wide enough - trying again");
msleep(20); /* wait for kill complete */
if (gspca_dev->sd_desc->isoc_nego) {
ret = gspca_dev->sd_desc->isoc_nego(gspca_dev);