提交 4bdf4a83 编写于 作者: J Jean-Francois Moine 提交者: Mauro Carvalho Chehab

V4L/DVB (13421): gspca - main: Clearer message when bandwidth too small.

Signed-off-by: NJean-Francois Moine <moinejf@free.fr>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 89b3d78d
...@@ -657,15 +657,19 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev) ...@@ -657,15 +657,19 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev)
} }
if (ret >= 0) if (ret >= 0)
break; break;
PDEBUG(D_ERR|D_STREAM,
"usb_submit_urb alt %d err %d", gspca_dev->alt, ret);
gspca_dev->streaming = 0; gspca_dev->streaming = 0;
destroy_urbs(gspca_dev); 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; goto out;
}
/* the bandwidth is not wide enough /* the bandwidth is not wide enough
* negociate or try a lower alternate setting */ * negociate or try a lower alternate setting */
PDEBUG(D_ERR|D_STREAM,
"bandwidth not wide enough - trying again");
msleep(20); /* wait for kill complete */ msleep(20); /* wait for kill complete */
if (gspca_dev->sd_desc->isoc_nego) { if (gspca_dev->sd_desc->isoc_nego) {
ret = gspca_dev->sd_desc->isoc_nego(gspca_dev); ret = gspca_dev->sd_desc->isoc_nego(gspca_dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册