[media] tm6000: set colorspace field
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 11 Sep 2012 14:51:02 +0000 (11:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 20:32:22 +0000 (18:32 -0200)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/tm6000/tm6000-video.c

index 25202a71d65eb478bde7b48f35b5b2428d4e5c1e..ac2588535f48c45244b1af52a2b4d417e2c2665b 100644 (file)
@@ -913,6 +913,7 @@ static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
        f->fmt.pix.height       = fh->height;
        f->fmt.pix.field        = fh->vb_vidq.field;
        f->fmt.pix.pixelformat  = fh->fmt->fourcc;
+       f->fmt.pix.colorspace   = V4L2_COLORSPACE_SMPTE170M;
        f->fmt.pix.bytesperline =
                (f->fmt.pix.width * fh->fmt->depth) >> 3;
        f->fmt.pix.sizeimage =
@@ -967,6 +968,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
                (f->fmt.pix.width * fmt->depth) >> 3;
        f->fmt.pix.sizeimage =
                f->fmt.pix.height * f->fmt.pix.bytesperline;
+       f->fmt.pix.colorspace   = V4L2_COLORSPACE_SMPTE170M;
 
        return 0;
 }