Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109533
b: refs/heads/master
c: d55b83d
h: refs/heads/master
i:
  109531: 8dc2ee1
v: v3
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Sep 3, 2008
1 parent 71317f4 commit 6c98254
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 05b809c702bf297690c63ea78ee117c4dc909028
refs/heads/master: d55b83d3c4558d0d118bf20ef3f1fa65b1c75c3d
12 changes: 7 additions & 5 deletions trunk/drivers/media/video/gspca/sonixj.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ static int configure_gpio(struct gspca_dev *gspca_dev,

switch (sd->sensor) {
case SENSOR_OM6802:
reg_w1(gspca_dev, 0x02, 0x71);
reg_w1(gspca_dev, 0x02, 0x73); /* was 71 */
reg_w1(gspca_dev, 0x01, 0x42);
reg_w1(gspca_dev, 0x17, 0x64);
reg_w1(gspca_dev, 0x01, 0x42);
Expand Down Expand Up @@ -1056,7 +1056,7 @@ static unsigned int setexposure(struct gspca_dev *gspca_dev,
expo = 0x0001;
gainOm[3] = expo >> 2;
i2c_w8(gspca_dev, gainOm);
reg_w1(gspca_dev, 0x96, expo >> 5);
reg_w1(gspca_dev, 0x96, (expo >> 5) & 0x1f);
PDEBUG(D_CONF, "set exposure %d", gainOm[3]);
break;
}
Expand Down Expand Up @@ -1138,11 +1138,13 @@ static void setcolors(struct gspca_dev *gspca_dev)
int colour;

colour = sd->colors - 128;
if (colour > 0)
if (colour > 0) {
data = (colour + 32) & 0x7f; /* blue */
else
reg_w1(gspca_dev, 0x06, data);
} else {
data = (-colour + 32) & 0x7f; /* red */
reg_w1(gspca_dev, 0x05, data);
reg_w1(gspca_dev, 0x05, data);
}
}

static void setautogain(struct gspca_dev *gspca_dev)
Expand Down

0 comments on commit 6c98254

Please sign in to comment.