[COMMON] fimc-is2: remove unused shot trigger logic
authorWooki Min <wooki.min@samsung.com>
Wed, 7 Nov 2018 00:58:19 +0000 (09:58 +0900)
committerKim Gunho <gunho.kim@samsung.com>
Wed, 7 Aug 2019 12:59:54 +0000 (21:59 +0900)
This shot trigger logic is not valid because when HW FRO is enabled,
shot is transfer to DDK too much.

JIRA PR ID: CPR-370

Change-Id: I040c0caf299a20ab7c0d00d3eab55e37ea312152
Signed-off-by: Wooki Min <wooki.min@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c

index f5eb8c9d3a77a3a232912f12c382ee410042ab13..8b5c5bafd4b8e0e2a1595c34987728bc195fabaa 100644 (file)
@@ -520,12 +520,7 @@ void tasklet_csis_str_otf(unsigned long data)
        } else {
                backup_fcount = atomic_read(&group_sensor->backup_fcount);
                g_print_cnt = 0;
-#if defined(ENABLE_HW_FAST_READ_OUT)
-               if ((fcount >= backup_fcount) || ((fcount + device->num_buffers - 2) % device->num_buffers == 0))
-#else
-               if (fcount + group_sensor->skip_shots > backup_fcount)
-#endif
-               {
+               if (fcount + group_sensor->skip_shots > backup_fcount) {
                        atomic_set(&group_sensor->sensor_fcount, fcount + group_sensor->skip_shots);
                        dbg("%s: [F:%d] up(smp_trigger) - [backup_F:%d] num_bufs(%d)\n", __func__, fcount,
                                backup_fcount, device->num_buffers);