From: Jean-Francois Moine Date: Sun, 23 Nov 2008 18:53:28 +0000 (-0300) Subject: V4L/DVB (9838): gspca: Delay when trying an other altsetting on streaming start. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9edf1a69259a74fc295f2ef52546f3da8bb962cb;p=openwrt%2Fstaging%2Fblogic.git V4L/DVB (9838): gspca: Delay when trying an other altsetting on streaming start. Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 2358e6cfb381..9b71059521f9 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c @@ -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; } }