diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-10-05 07:21:24 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 11:37:15 (GMT) |
commit | 79a9098ae47119fad54a3443e358f08e30b7d3a5 (patch) | |
tree | d4c9d5b5580d6e1f3db1b9b4adfb0aa9cca22194 /drivers/media/video | |
parent | a482f327ff56bc3cf53176a7eb736cea47291a1d (diff) | |
download | linux-79a9098ae47119fad54a3443e358f08e30b7d3a5.tar.xz |
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>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/gspca/sonixj.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 93b1734..53cb82d 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c @@ -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; } |