From: Marek Szyprowski Date: Fri, 21 Oct 2011 07:56:12 +0000 (-0300) Subject: [media] v4l: s5p-tv: fix plane size calculation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c1bf9c654a752b68be1b4408b33443a17515a671;p=openwrt%2Fstaging%2Fblogic.git [media] v4l: s5p-tv: fix plane size calculation Fix plane size calculation. Signed-off-by: Marek Szyprowski Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/s5p-tv/mixer_video.c b/drivers/media/video/s5p-tv/mixer_video.c index c0eadd75c9ac..cc1e9b9b53ba 100644 --- a/drivers/media/video/s5p-tv/mixer_video.c +++ b/drivers/media/video/s5p-tv/mixer_video.c @@ -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]); }