From 7c70a64c22ed41dc1b235a810ae51c9cc453754e Mon Sep 17 00:00:00 2001 From: Eunyoung Lee Date: Fri, 15 Jun 2018 10:58:10 +0900 Subject: [PATCH] [COMMON] fimc-is2: fix a bug buf_kva for meta plane Change-Id: Idccf927bfc8a8d182a0167bd9dc9c2dc6850aad4 Signed-off-by: Eunyoung Lee --- drivers/media/platform/exynos/fimc-is2/fimc-is-video.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/exynos/fimc-is2/fimc-is-video.c b/drivers/media/platform/exynos/fimc-is2/fimc-is-video.c index 6b9ebdbc5445..938fc40dd0ab 100644 --- a/drivers/media/platform/exynos/fimc-is2/fimc-is-video.c +++ b/drivers/media/platform/exynos/fimc-is2/fimc-is-video.c @@ -1003,6 +1003,9 @@ int fimc_is_queue_buffer_queue(struct fimc_is_queue *queue, } frame = &framemgr->frames[index]; + frame->num_buffers = batch_size; + frame->planes = image_planes * batch_size; + spare = image_planes * batch_size; /* meta plane */ queue->buf_box[index][spare] = vbuf->ops->plane_cookie(vbuf, image_planes); @@ -1068,10 +1071,6 @@ set_info: goto exit; } - frame->num_buffers = batch_size; - frame->planes = image_planes * batch_size; - spare = image_planes * batch_size; - for (i = 0; i < frame->planes; i++) { frame->dvaddr_buffer[i] = (u32)queue->buf_dva[index][i]; frame->kvaddr_buffer[i] = queue->buf_kva[index][i]; -- 2.20.1