[COMMON] fimc-is2: adjust internal vc dma offset by dtsi value
authorWooyeon Kim <wooy88.kim@samsung.com>
Mon, 18 Feb 2019 11:08:55 +0000 (20:08 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Mon, 10 Jun 2019 03:21:09 +0000 (11:21 +0800)
 - each internal vc value can differ for indexing
   so it need to set each other

 PR JIRA ID: CPR-710

Change-Id: I4d4253fda41101b490a8caaf114f5880547b0830
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-device-sensor_v2.c

index 8fade3723da444287a1ec796aee7bf4971c37eb8..38b420fc5fb5cb4b1664a5c79c107bf53e43f46f 100644 (file)
@@ -1098,7 +1098,7 @@ static int fimc_is_sensor_notify_by_fstr(struct fimc_is_device_sensor *device, v
                                framemgr_x_barrier(framemgr, 0);
                                return -EINVAL;
                        }
-                       frameptr = (ctrl.value + 1) % framemgr->num_frames;
+                       frameptr = (ctrl.value + dma_subdev->vc_buffer_offset) % framemgr->num_frames;
                        frame = &framemgr->frames[frameptr];
                        frame->fcount = device->fcount;