mirror of
https://github.com/torvalds/linux.git
synced 2024-12-16 08:02:17 +00:00
[media] cx23885: fix format colorspace compliance error
Fix v4l2-compliance failure relating to formatting. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
5150392cd9
commit
1af2ddd8b3
@ -913,6 +913,7 @@ static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
|
|||||||
(f->fmt.pix.width * fh->fmt->depth) >> 3;
|
(f->fmt.pix.width * fh->fmt->depth) >> 3;
|
||||||
f->fmt.pix.sizeimage =
|
f->fmt.pix.sizeimage =
|
||||||
f->fmt.pix.height * f->fmt.pix.bytesperline;
|
f->fmt.pix.height * f->fmt.pix.bytesperline;
|
||||||
|
f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -957,6 +958,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
|
|||||||
(f->fmt.pix.width * fmt->depth) >> 3;
|
(f->fmt.pix.width * fmt->depth) >> 3;
|
||||||
f->fmt.pix.sizeimage =
|
f->fmt.pix.sizeimage =
|
||||||
f->fmt.pix.height * f->fmt.pix.bytesperline;
|
f->fmt.pix.height * f->fmt.pix.bytesperline;
|
||||||
|
f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user