Commit 79a9098a authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab

V4L/DVB (9118): gspca: Set the vertical flip at streamon time in sonixj.

Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a482f327
...@@ -1350,6 +1350,9 @@ static int sd_start(struct gspca_dev *gspca_dev) ...@@ -1350,6 +1350,9 @@ static int sd_start(struct gspca_dev *gspca_dev)
setbrightness(gspca_dev); setbrightness(gspca_dev);
setcontrast(gspca_dev); setcontrast(gspca_dev);
break; break;
case SENSOR_OV7630:
setvflip(sd);
/* fall thru */
default: /* OV76xx */ default: /* OV76xx */
setbrightcont(gspca_dev); setbrightcont(gspca_dev);
break; break;
...@@ -1582,6 +1585,7 @@ static int sd_setvflip(struct gspca_dev *gspca_dev, __s32 val) ...@@ -1582,6 +1585,7 @@ static int sd_setvflip(struct gspca_dev *gspca_dev, __s32 val)
struct sd *sd = (struct sd *) gspca_dev; struct sd *sd = (struct sd *) gspca_dev;
sd->vflip = val; sd->vflip = val;
if (gspca_dev->streaming)
setvflip(sd); setvflip(sd);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment