summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/sq905.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-04-05 18:03:02 +0200
committerJean-Francois Moine <moinejf@free.fr>2009-04-05 18:03:02 +0200
commitbcaafb56e4c3741c1923db37683a4590dda2cbfb (patch)
tree4ade810f7cbd3425665c1ce57769745871565866 /linux/drivers/media/video/gspca/sq905.c
parentffa071fb6b99731b41db5e814dbb2b0403c7c98c (diff)
parent8dd3ceb79cec4a833fbc9fd654b7e71e9548d331 (diff)
downloadmediapointer-dvb-s2-bcaafb56e4c3741c1923db37683a4590dda2cbfb.tar.gz
mediapointer-dvb-s2-bcaafb56e4c3741c1923db37683a4590dda2cbfb.tar.bz2
merge: v4l-dvb
Diffstat (limited to 'linux/drivers/media/video/gspca/sq905.c')
-rw-r--r--linux/drivers/media/video/gspca/sq905.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/sq905.c b/linux/drivers/media/video/gspca/sq905.c
index 04e3ae57a..2e1cdf068 100644
--- a/linux/drivers/media/video/gspca/sq905.c
+++ b/linux/drivers/media/video/gspca/sq905.c
@@ -360,6 +360,12 @@ static int sd_init(struct gspca_dev *gspca_dev)
gspca_dev->cam.nmodes = ARRAY_SIZE(sq905_mode);
if (!(ident & SQ905_HIRES_MASK))
gspca_dev->cam.nmodes--;
+
+ if (ident & SQ905_ORIENTATION_MASK)
+ gspca_dev->cam.input_flags = V4L2_IN_ST_VFLIP;
+ else
+ gspca_dev->cam.input_flags = V4L2_IN_ST_VFLIP |
+ V4L2_IN_ST_HFLIP;
return 0;
}