Commit 9ba4a4ba authored by Jean-François Moine's avatar Jean-François Moine Committed by Mauro Carvalho Chehab

[media] gspca - spca1528: Increase the status waiting time

Some webcams ask for a greater time to start.
This patch increases the delay before timeout error on capture start.
Signed-off-by: default avatarJean-François Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 8f12b1ab
......@@ -226,14 +226,16 @@ static void reg_wb(struct gspca_dev *gspca_dev,
static void wait_status_0(struct gspca_dev *gspca_dev)
{
int i;
int i, w;
i = 20;
i = 16;
w = 0;
do {
reg_r(gspca_dev, 0x21, 0x0000, 1);
if (gspca_dev->usb_buf[0] == 0)
return;
msleep(30);
w += 15;
msleep(w);
} while (--i > 0);
PDEBUG(D_ERR, "wait_status_0 timeout");
gspca_dev->usb_err = -ETIME;
......
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