Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109566
b: refs/heads/master
c: 65f3339
h: refs/heads/master
v: v3
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Sep 3, 2008
1 parent 9d98ad5 commit b315668
Show file tree
Hide file tree
Showing 2 changed files with 9 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: e2ad2a54ad1e0f8d7c9e49c38b552a630e015af3
refs/heads/master: 65f33396ab57f3346fb07ddee8e3aa616d13386c
11 changes: 8 additions & 3 deletions trunk/drivers/media/video/gspca/sonixb.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,11 @@ static int sd_config(struct gspca_dev *gspca_dev,
struct sd *sd = (struct sd *) gspca_dev;
struct cam *cam;
int sif = 0;
const __u8 stop = 0x09; /* Disable stream turn of LED */

reg_r(gspca_dev, 0x00);
if (gspca_dev->usb_buf[0] != 0x10)
return -ENODEV;

/* copy the webcam info from the device id */
sd->sensor = (id->driver_info >> 24) & 0xff;
Expand Down Expand Up @@ -788,15 +793,15 @@ static int sd_config(struct gspca_dev *gspca_dev,
sd->autogain = AUTOGAIN_DEF;
sd->freq = FREQ_DEF;

/* Disable stream turn of LED */
reg_w(gspca_dev, 0x01, &stop, 1);

return 0;
}

/* this function is called at open time */
static int sd_open(struct gspca_dev *gspca_dev)
{
reg_r(gspca_dev, 0x00);
if (gspca_dev->usb_buf[0] != 0x10)
return -ENODEV;
return 0;
}

Expand Down

0 comments on commit b315668

Please sign in to comment.