V4L/DVB: gspca - sonixj: Set the vertical flip at capture start for all sensors
Signed-off-by: Jean-François Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
f6b22e5e8e
commit
1e5eb1133a
1 changed files with 1 additions and 6 deletions
|
@ -2082,7 +2082,6 @@ static int sd_start(struct gspca_dev *gspca_dev)
|
||||||
reg17 = 0x64; /* 640 MCKSIZE */
|
reg17 = 0x64; /* 640 MCKSIZE */
|
||||||
break;
|
break;
|
||||||
case SENSOR_OV7630:
|
case SENSOR_OV7630:
|
||||||
setvflip(sd);
|
|
||||||
reg17 = 0xe2;
|
reg17 = 0xe2;
|
||||||
reg1 = 0x44;
|
reg1 = 0x44;
|
||||||
break;
|
break;
|
||||||
|
@ -2154,11 +2153,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
|
||||||
reg_w1(gspca_dev, 0x17, reg17);
|
reg_w1(gspca_dev, 0x17, reg17);
|
||||||
reg_w1(gspca_dev, 0x01, reg1);
|
reg_w1(gspca_dev, 0x01, reg1);
|
||||||
|
|
||||||
switch (sd->sensor) {
|
setvflip(sd);
|
||||||
case SENSOR_OV7630:
|
|
||||||
setvflip(sd);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
setbrightness(gspca_dev);
|
setbrightness(gspca_dev);
|
||||||
setcontrast(gspca_dev);
|
setcontrast(gspca_dev);
|
||||||
setautogain(gspca_dev);
|
setautogain(gspca_dev);
|
||||||
|
|
Loading…
Reference in a new issue