[COMMON] fimc-is2: remove 'buf_box' in our quque
authorJeongtae Park <jtp.park@samsung.com>
Sun, 17 Jun 2018 07:46:19 +0000 (16:46 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:05:13 +0000 (17:05 +0900)
Change-Id: I0182be2713807ecfa7b786bc3e92b74a35321484
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-video.c
drivers/media/platform/exynos/fimc-is2/fimc-is-video.h

index a35f889cfa50ae006f7b8671bbe285992f17f210..5e20ca81e47cadef91716468534135ec50490b5b 100644 (file)
@@ -931,8 +931,6 @@ int fimc_is_queue_buffer_queue(struct fimc_is_queue *queue,
 
        /* plane address is updated for checking everytime */
        for (i = 0; i < image_planes; i++) {
-               queue->buf_box[index][i] = vbuf->ops->plane_cookie(vbuf, i);
-
                /* get dmabuf_container */
                dmabuf = dma_buf_get(vb->planes[i].m.fd);
                if (IS_ERR_OR_NULL(dmabuf)) {
@@ -1008,7 +1006,6 @@ int fimc_is_queue_buffer_queue(struct fimc_is_queue *queue,
        spare = image_planes * batch_size;
 
        /* meta plane */
-       queue->buf_box[index][spare] = vbuf->ops->plane_cookie(vbuf, image_planes);
        queue->buf_kva[index][spare] = vbuf->ops->plane_kvaddr(vbuf, image_planes);
        if (!queue->buf_kva[index][spare]) {
                mverr("plane_kvaddr is fail(%s)", vctx, video, framemgr->name);
@@ -1020,7 +1017,6 @@ int fimc_is_queue_buffer_queue(struct fimc_is_queue *queue,
                ext_size = sizeof(struct camera2_shot_ext) - sizeof(struct camera2_shot);
 
                frame->kvaddr_shot = queue->buf_kva[index][spare] + ext_size;
-               frame->cookie_shot = queue->buf_box[index][spare];
                frame->shot = (struct camera2_shot *)frame->kvaddr_shot;
                frame->shot_ext = (struct camera2_shot_ext *)queue->buf_kva[index][spare];
                frame->shot_size = queue->framecfg.size[spare] - ext_size;
index 5dcd576f0f0bdf2bb4d8911ae2ce3ef51743e197..1b238fcfbe336dc83a9734e659ace04ee1cbebbf 100644 (file)
@@ -284,7 +284,6 @@ struct fimc_is_queue {
        u32                             buf_refcount;
        ulong                           buf_dva[FIMC_IS_MAX_BUFS][FIMC_IS_MAX_PLANES];
        ulong                           buf_kva[FIMC_IS_MAX_BUFS][FIMC_IS_MAX_PLANES];
-       ulong                           buf_box[FIMC_IS_MAX_BUFS][FIMC_IS_MAX_PLANES];
 
        /* for debugging */
        u32                             buf_req;