aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-11-23 13:53:28 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:38:46 -0500
commit9edf1a69259a74fc295f2ef52546f3da8bb962cb (patch)
treec3c2d61893892e42d81586f107e4d1070f70c787 /drivers
parent91bd3412a22d68b7a9a09720e748fbbf68c2d545 (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/gspca/gspca.c5
1 files changed, 4 insertions, 1 deletions
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)
639 "usb_submit_urb [%d] err %d", n, ret); 639 "usb_submit_urb [%d] err %d", n, ret);
640 gspca_dev->streaming = 0; 640 gspca_dev->streaming = 0;
641 destroy_urbs(gspca_dev); 641 destroy_urbs(gspca_dev);
642 if (ret == -ENOSPC) 642 if (ret == -ENOSPC) {
643 mdelay(20); /* wait for kill
644 * complete */
643 break; /* try the previous alt */ 645 break; /* try the previous alt */
646 }
644 goto out; 647 goto out;
645 } 648 }
646 } 649 }