[COMMON] fimc-is2: fix a bug buf_kva for meta plane
authorEunyoung Lee <ey470.lee@samsung.com>
Fri, 15 Jun 2018 01:58:10 +0000 (10:58 +0900)
committerEunyoung Lee <ey470.lee@samsung.com>
Tue, 19 Jun 2018 08:56:36 +0000 (17:56 +0900)
Change-Id: Idccf927bfc8a8d182a0167bd9dc9c2dc6850aad4
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-video.c

index 6b9ebdbc544533b624318000fb49ba6e6b4daf89..938fc40dd0abc2611c2b4f049758b61c20e4b257 100644 (file)
@@ -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];