summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/gspca.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-11-23 19:53:28 +0100
committerJean-Francois Moine <moinejf@free.fr>2008-11-23 19:53:28 +0100
commit97d6559961971da20d7ea7ac672231e2b2033dc3 (patch)
treea13a4b9de4287a354a311d5ceae7e90fe6bde3bf /linux/drivers/media/video/gspca/gspca.c
parentb2c41052eb2e8da66d3ca3d44fcda96ef9be2ee7 (diff)
downloadmediapointer-dvb-s2-97d6559961971da20d7ea7ac672231e2b2033dc3.tar.gz
mediapointer-dvb-s2-97d6559961971da20d7ea7ac672231e2b2033dc3.tar.bz2
gspca: Delay when trying an other altsetting on streaming start.
From: Jean-Francois Moine <moinejf@free.fr> Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/gspca.c')
-rw-r--r--linux/drivers/media/video/gspca/gspca.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/gspca.c b/linux/drivers/media/video/gspca/gspca.c
index d725663fc..79be1e0e4 100644
--- a/linux/drivers/media/video/gspca/gspca.c
+++ b/linux/drivers/media/video/gspca/gspca.c
@@ -649,8 +649,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;
}
}