diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-11-23 19:53:28 +0100 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-11-23 19:53:28 +0100 |
commit | 97d6559961971da20d7ea7ac672231e2b2033dc3 (patch) | |
tree | a13a4b9de4287a354a311d5ceae7e90fe6bde3bf /linux/drivers/media/video/gspca/gspca.c | |
parent | b2c41052eb2e8da66d3ca3d44fcda96ef9be2ee7 (diff) | |
download | mediapointer-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.c | 5 |
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; } } |