]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (6109): ivtv: use new videodev2.h pixel formats
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 25 Aug 2007 18:19:18 +0000 (15:19 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:07:04 +0000 (22:07 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-ioctl.c

index 6d24c6b9a45b7c8e3f13306fc000c79ddf961f5f..206eee7542db826803db08c73b8778c757f75bca 100644 (file)
@@ -1186,7 +1186,7 @@ int ivtv_v4l2_ioctls(struct ivtv *itv, struct file *filp, unsigned int cmd, void
                struct v4l2_framebuffer *fb = arg;
                int pixfmt;
                static u32 pixel_format[16] = {
-                       V4L2_PIX_FMT_RGB332, /* Really RGB Indexed */
+                       V4L2_PIX_FMT_PAL8, /* Uses a 256-entry RGB colormap */
                        V4L2_PIX_FMT_RGB565,
                        V4L2_PIX_FMT_RGB555,
                        V4L2_PIX_FMT_RGB444,
@@ -1194,12 +1194,11 @@ int ivtv_v4l2_ioctls(struct ivtv *itv, struct file *filp, unsigned int cmd, void
                        0,
                        0,
                        0,
-                       /* Really YUV variants */
-                       V4L2_PIX_FMT_RGB332, /* Really YUV Indexed */
-                       V4L2_PIX_FMT_RGB565,
-                       V4L2_PIX_FMT_RGB555,
-                       V4L2_PIX_FMT_RGB444,
-                       V4L2_PIX_FMT_RGB32,
+                       V4L2_PIX_FMT_PAL8, /* Uses a 256-entry YUV colormap */
+                       V4L2_PIX_FMT_YUV565,
+                       V4L2_PIX_FMT_YUV555,
+                       V4L2_PIX_FMT_YUV444,
+                       V4L2_PIX_FMT_YUV32,
                        0,
                        0,
                        0,