diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-10-05 09:21:24 +0200 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-10-05 09:21:24 +0200 |
commit | cf40a792704411e384568bb705e0115a21a44f2a (patch) | |
tree | f4d3b8607a4c591384ac386ea840ea2a41d4f437 /linux/drivers/media/video | |
parent | 80ec884df95bd4087156ae970f290da3971cd1bc (diff) | |
download | mediapointer-dvb-s2-cf40a792704411e384568bb705e0115a21a44f2a.tar.gz mediapointer-dvb-s2-cf40a792704411e384568bb705e0115a21a44f2a.tar.bz2 |
gspca: Set the vertical flip at streamon time in sonixj.
From: Jean-Francois Moine <moinejf@free.fr>
Priority: normal
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/gspca/sonixj.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/sonixj.c b/linux/drivers/media/video/gspca/sonixj.c index f68faf6bd..aa11df134 100644 --- a/linux/drivers/media/video/gspca/sonixj.c +++ b/linux/drivers/media/video/gspca/sonixj.c @@ -1365,6 +1365,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; @@ -1597,7 +1600,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; } |