From: Eunyoung Lee Date: Fri, 15 Jun 2018 01:58:10 +0000 (+0900) Subject: [COMMON] fimc-is2: fix a bug buf_kva for meta plane X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c70a64c22ed41dc1b235a810ae51c9cc453754e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: fix a bug buf_kva for meta plane Change-Id: Idccf927bfc8a8d182a0167bd9dc9c2dc6850aad4 Signed-off-by: Eunyoung Lee --- 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];