The patch number 8962 was added via Mauro Carvalho Chehab <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Jean Delvare  <[EMAIL PROTECTED]>
zr36067: VIDIOC_S_FMT returns the colorspace value


Ioctl VIDIOC_S_FMT is supposed to fill the colorspace value in the
returned buffer.

Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>


---

 linux/drivers/media/video/zoran_driver.c |    4 ++++
 1 file changed, 4 insertions(+)

diff -r 124b8348c0cb -r b85596a18898 linux/drivers/media/video/zoran_driver.c
--- a/linux/drivers/media/video/zoran_driver.c  Fri Sep 05 15:39:27 2008 +0200
+++ b/linux/drivers/media/video/zoran_driver.c  Sun Sep 07 10:58:54 2008 +0200
@@ -2982,6 +2982,8 @@ zoran_do_ioctl (struct inode *inode,
                                fmt->fmt.pix.bytesperline = 0;
                                fmt->fmt.pix.sizeimage =
                                    fh->jpg_buffers.buffer_size;
+                               fmt->fmt.pix.colorspace =
+                                   V4L2_COLORSPACE_SMPTE170M;
 
                                /* we hereby abuse this variable to show that
                                 * we're gonna do mjpeg capture */
@@ -3041,6 +3043,8 @@ zoran_do_ioctl (struct inode *inode,
                                fmt->fmt.pix.sizeimage =
                                        fh->v4l_settings.height *
                                        fh->v4l_settings.bytesperline;
+                               fmt->fmt.pix.colorspace =
+                                       fh->v4l_settings.format->colorspace;
                                if (BUZ_MAX_HEIGHT <
                                    (fh->v4l_settings.height * 2))
                                        fmt->fmt.pix.field =


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/b85596a18898cf154aeef0fee0487f4b3a9afb70

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to