Skip to content

Commit

Permalink
V4L/DVB (9838): gspca: Delay when trying an other altsetting on strea…
Browse files Browse the repository at this point in the history
…ming start.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent 91bd341 commit 9edf1a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 9edf1a6

Please sign in to comment.