Commit 9edf1a69 authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab

V4L/DVB (9838): gspca: Delay when trying an other altsetting on streaming start.

Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 91bd3412
...@@ -639,8 +639,11 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev) ...@@ -639,8 +639,11 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev)
"usb_submit_urb [%d] err %d", n, ret); "usb_submit_urb [%d] err %d", n, ret);
gspca_dev->streaming = 0; gspca_dev->streaming = 0;
destroy_urbs(gspca_dev); destroy_urbs(gspca_dev);
if (ret == -ENOSPC) if (ret == -ENOSPC) {
mdelay(20); /* wait for kill
* complete */
break; /* try the previous alt */ break; /* try the previous alt */
}
goto out; goto out;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment