[media] v4l: s5p-tv: fix plane size calculation
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 21 Oct 2011 07:56:12 +0000 (04:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 20 May 2012 12:00:13 +0000 (09:00 -0300)
Fix plane size calculation.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-tv/mixer_video.c

index c0eadd75c9acf9336a19a4e5570ffd19271ada40..cc1e9b9b53ba2864ea6fbf75aa2bdef5faefed98 100644 (file)
@@ -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]);
        }