Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181528
b: refs/heads/master
c: ab269d3
h: refs/heads/master
v: v3
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent a9ee173 commit d4b788f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9336960d075839b41bef89a0c68899c4025e8289
refs/heads/master: ab269d300ef9fe7e2f60613d0ac160e12b84658e
4 changes: 4 additions & 0 deletions trunk/drivers/media/video/gspca/stv0680.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ static int sd_config(struct gspca_dev *gspca_dev,
struct sd *sd = (struct sd *) gspca_dev;
struct cam *cam = &gspca_dev->cam;

/* Give the camera some time to settle, otherwise initalization will
fail on hotplug, and yes it really needs a full second. */
msleep(1000);

/* ping camera to be sure STV0680 is present */
if (stv_sndctrl(gspca_dev, 0, 0x88, 0x5678, 0x02) != 0x02 ||
gspca_dev->usb_buf[0] != 0x56 || gspca_dev->usb_buf[1] != 0x78) {
Expand Down

0 comments on commit d4b788f

Please sign in to comment.