mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-31 16:43:51 +08:00
[media] tm6000: set colorspace field
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
770056c47f
commit
e618578dd8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user