Skip to content

Commit

Permalink
[media] v4l: s5p-tv: fix plane size calculation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Szyprowski authored and Mauro Carvalho Chehab committed May 20, 2012
1 parent 9d59344 commit c1bf9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/s5p-tv/mixer_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down

0 comments on commit c1bf9c6

Please sign in to comment.