Skip to content

Commit

Permalink
V4L/DVB (9118): gspca: Set the vertical flip at streamon time in sonixj.
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent a482f32 commit 79a9098
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/media/video/gspca/sonixj.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 79a9098

Please sign in to comment.