Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271902
b: refs/heads/master
c: 9ba4a4b
h: refs/heads/master
v: v3
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed Sep 24, 2011
1 parent aa785ec commit 6e0a3ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f12b1ab2fac0edbc5d8ad64f962fe40662c5b72
refs/heads/master: 9ba4a4ba3c170e618f75213fb03fe2deda754195
8 changes: 5 additions & 3 deletions trunk/drivers/media/video/gspca/spca1528.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6e0a3ff

Please sign in to comment.