aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHans de Goede <j.w.r.degoede@hhs.nl>2008-09-03 15:48:16 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-09-03 17:37:00 -0400
commit89a44b8a690ff2d8639b72931d9c197a8db0c803 (patch)
tree05a958f34d5e713712d3545a1f2519f94b37410c /include
parentf9b4a377dc6601a3299171c7b24c2c5189c0c10b (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 'include')
-rw-r--r--include/linux/videodev2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 6c73516b74c4..4c30655b293f 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -261,6 +261,11 @@ struct v4l2_capability {
261#define V4L2_CAP_ASYNCIO 0x02000000 /* async I/O */ 261#define V4L2_CAP_ASYNCIO 0x02000000 /* async I/O */
262#define V4L2_CAP_STREAMING 0x04000000 /* streaming I/O ioctls */ 262#define V4L2_CAP_STREAMING 0x04000000 /* streaming I/O ioctls */
263 263
264/* This flags gets set if the "sensor" is known to be upside down and this can
265 *not* be fixed using v4l2 flipx/y controls. Note that absence of this flag
266 is not a guarantee for the image not being upside down. */
267#define V4L2_CAP_SENSOR_UPSIDE_DOWN 0x10000000
268
264/* 269/*
265 * V I D E O I M A G E F O R M A T 270 * V I D E O I M A G E F O R M A T
266 */ 271 */