diff options
author | Hans de Goede <j.w.r.degoede@hhs.nl> | 2008-09-03 15:48:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-03 17:37:00 -0400 |
commit | 89a44b8a690ff2d8639b72931d9c197a8db0c803 (patch) | |
tree | 05a958f34d5e713712d3545a1f2519f94b37410c /drivers/media/video/gspca/gspca.c | |
parent | f9b4a377dc6601a3299171c7b24c2c5189c0c10b (diff) |
V4L/DVB (8720): gspca: V4L2_CAP_SENSOR_UPSIDE_DOWN added as a cap for some webcams.
This patch adds a V4L2_CAP_SENSOR_UPSIDE_DOWN flag to the capabilities flags,
and sets this flag for the Philips SPC200NC cam (which has its sensor installed
upside down). The same flag is also needed and added for the Philips SPC300NC.
Together with a patch to libv4l which adds flipping the image in software this
fixes the upside down display with the SPC200NC cam.
Signed-of-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.c')
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 061e1912924..3461bc9e473 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c | |||
@@ -851,6 +851,8 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
851 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | 851 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE |
852 | | V4L2_CAP_STREAMING | 852 | | V4L2_CAP_STREAMING |
853 | | V4L2_CAP_READWRITE; | 853 | | V4L2_CAP_READWRITE; |
854 | if (gspca_dev->flags & GSPCA_SENSOR_UPSIDE_DOWN_FLAG) | ||
855 | cap->capabilities |= V4L2_CAP_SENSOR_UPSIDE_DOWN; | ||
854 | return 0; | 856 | return 0; |
855 | } | 857 | } |
856 | 858 | ||