V4L/DVB (9838): gspca: Delay when trying an other altsetting on streaming start.

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 2008-11-23 15:53:28 -03:00 committed by Mauro Carvalho Chehab
parent 91bd3412a2
commit 9edf1a6925
1 changed files with 4 additions and 1 deletions

View File

@ -639,8 +639,11 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev)
"usb_submit_urb [%d] err %d", n, ret);
gspca_dev->streaming = 0;
destroy_urbs(gspca_dev);
if (ret == -ENOSPC)
if (ret == -ENOSPC) {
mdelay(20); /* wait for kill
* complete */
break; /* try the previous alt */
}
goto out;
}
}