mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 08:37:53 +07:00
V4L/DVB (9118): gspca: Set the vertical flip at streamon time in sonixj.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
a482f327ff
commit
79a9098ae4
@ -1350,6 +1350,9 @@ static int sd_start(struct gspca_dev *gspca_dev)
|
||||
setbrightness(gspca_dev);
|
||||
setcontrast(gspca_dev);
|
||||
break;
|
||||
case SENSOR_OV7630:
|
||||
setvflip(sd);
|
||||
/* fall thru */
|
||||
default: /* OV76xx */
|
||||
setbrightcont(gspca_dev);
|
||||
break;
|
||||
@ -1582,7 +1585,8 @@ static int sd_setvflip(struct gspca_dev *gspca_dev, __s32 val)
|
||||
struct sd *sd = (struct sd *) gspca_dev;
|
||||
|
||||
sd->vflip = val;
|
||||
setvflip(sd);
|
||||
if (gspca_dev->streaming)
|
||||
setvflip(sd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user