Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153923
b: refs/heads/master
c: f800952
h: refs/heads/master
i:
  153921: 58a6e28
  153919: e375809
v: v3
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Jun 23, 2009
1 parent f1e2e5e commit a3de6fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 37c6dbe290c05023b47f52528e30ce51336b93eb
refs/heads/master: f800952c21157f11a5510d9cf700c9a7ba30800d
18 changes: 9 additions & 9 deletions trunk/drivers/media/video/gspca/sonixj.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ static struct ctrl sd_ctrls[] = {
.minimum = 0,
.maximum = 1,
.step = 1,
#define VFLIP_DEF 0 /* vflip def = 1 for ov7630 */
#define VFLIP_DEF 0
.default_value = VFLIP_DEF,
},
.set = sd_setvflip,
Expand Down Expand Up @@ -1321,10 +1321,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
sd->gamma = GAMMA_DEF;
sd->autogain = AUTOGAIN_DEF;
sd->ag_cnt = -1;
if (sd->sensor != SENSOR_OV7630)
sd->vflip = 0;
else
sd->vflip = 1;
sd->vflip = VFLIP_DEF;
sd->infrared = INFRARED_DEF;
sd->freq = FREQ_DEF;
sd->quality = QUALITY_DEF;
Expand Down Expand Up @@ -1613,12 +1610,15 @@ static void setvflip(struct sd *sd)
{
u8 comn;

if (sd->sensor == SENSOR_OV7630)
if (sd->sensor == SENSOR_OV7630) {
comn = 0x02;
else
if (!sd->vflip)
comn |= 0x80;
} else {
comn = 0x06;
if (sd->vflip)
comn |= 0x80;
if (sd->vflip)
comn |= 0x80;
}
i2c_w1(&sd->gspca_dev, 0x75, comn);
}

Expand Down

0 comments on commit a3de6fa

Please sign in to comment.