Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137781
b: refs/heads/master
c: a48196a
h: refs/heads/master
i:
  137779: 086b22f
v: v3
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 1096b8a commit fd7f448
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 8fee8453969ccb0ecc2da128879e54641028ffd1
refs/heads/master: a48196a2f74a2e19e67debe194e337dfc583702f
9 changes: 6 additions & 3 deletions trunk/drivers/media/video/gspca/spca561.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,10 @@ static int sd_start_72a(struct gspca_dev *gspca_dev)
mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv;
switch (mode) {
default:
/* case 0:
case 1: */
case 0:
Clck = 0x27; /* ms-win 0x87 */
break;
case 1:
Clck = 0x25;
break;
case 2:
Expand All @@ -659,8 +661,9 @@ static int sd_start_72a(struct gspca_dev *gspca_dev)
Clck = 0x21;
break;
}
reg_w_val(dev, 0x8500, mode); /* mode */
reg_w_val(dev, 0x8700, Clck); /* 0x27 clock */
reg_w_val(dev, 0x8702, 0x81);
reg_w_val(dev, 0x8500, mode); /* mode */
write_sensor_72a(gspca_dev, rev72a_init_sensor2);
setcontrast(gspca_dev);
/* setbrightness(gspca_dev); * fixme: bad values */
Expand Down

0 comments on commit fd7f448

Please sign in to comment.