Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124361
b: refs/heads/master
c: b1b056a
h: refs/heads/master
i:
  124359: 825b98b
v: v3
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent 6f6c76c commit ce8f9ed
Show file tree
Hide file tree
Showing 2 changed files with 4 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: abf485fe5136c4f828df2d07655d6dc7253894a5
refs/heads/master: b1b056a5f22851273813f7f1208b50fb7934f12a
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/gspca/sonixj.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static struct ctrl sd_ctrls[] = {
#define BRIGHTNESS_MAX 0xffff
.maximum = BRIGHTNESS_MAX,
.step = 1,
#define BRIGHTNESS_DEF 0x7fff
#define BRIGHTNESS_DEF 0x8000
.default_value = BRIGHTNESS_DEF,
},
.set = sd_setbrightness,
Expand Down Expand Up @@ -1129,7 +1129,7 @@ static void setbrightness(struct gspca_dev *gspca_dev)
unsigned int expo;
__u8 k2;

k2 = sd->brightness >> 10;
k2 = ((int) sd->brightness - 0x8000) >> 10;
switch (sd->sensor) {
case SENSOR_HV7131R:
expo = sd->brightness << 4;
Expand All @@ -1147,7 +1147,7 @@ static void setbrightness(struct gspca_dev *gspca_dev)
case SENSOR_OM6802:
expo = sd->brightness >> 6;
sd->exposure = setexposure(gspca_dev, expo);
k2 >>= 1;
k2 = sd->brightness >> 11;
break;
}

Expand Down

0 comments on commit ce8f9ed

Please sign in to comment.