From: Wooki Min Date: Wed, 7 Nov 2018 00:58:19 +0000 (+0900) Subject: [COMMON] fimc-is2: remove unused shot trigger logic X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c3a14f089e945effa715fd37ff4bb97c4ff4d7cc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: remove unused shot trigger logic 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 --- diff --git a/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c b/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c index f5eb8c9d3a77..8b5c5bafd4b8 100644 --- a/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c +++ b/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c @@ -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);