The patch number 9838 was added via Jean-Francois Moine <moin...@free.fr>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        v4l-dvb-maintai...@linuxtv.org

------

From: Jean-Francois Moine  <moin...@free.fr>
gspca: Delay when trying an other altsetting on streaming start.


Priority: normal

Signed-off-by: Jean-Francois Moine <moin...@free.fr>


---

 linux/drivers/media/video/gspca/gspca.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff -r 39672300c5f1 -r 18d79331bfbe linux/drivers/media/video/gspca/gspca.c
--- a/linux/drivers/media/video/gspca/gspca.c   Sun Nov 23 18:47:50 2008 +0100
+++ b/linux/drivers/media/video/gspca/gspca.c   Sun Nov 23 19:53:28 2008 +0100
@@ -649,8 +649,11 @@ static int gspca_init_transfer(struct gs
                                        "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;
                        }
                }


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/18d79331bfbe4d0d21c1e7c35310e51cc5997f3e

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to