提交 c1bf9c65 编写于 作者: M Marek Szyprowski 提交者: Mauro Carvalho Chehab

[media] v4l: s5p-tv: fix plane size calculation

Fix plane size calculation.
Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 9d593444
......@@ -853,7 +853,7 @@ static int queue_setup(struct vb2_queue *vq, const struct v4l2_format *pfmt,
*nplanes = fmt->num_subframes;
for (i = 0; i < fmt->num_subframes; ++i) {
alloc_ctxs[i] = layer->mdev->alloc_ctx;
sizes[i] = PAGE_ALIGN(planes[i].sizeimage);
sizes[i] = planes[i].sizeimage;
mxr_dbg(mdev, "size[%d] = %08lx\n", i, sizes[i]);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册