From 55fc4cc92a45e78083eff6eb22a6d2878d693836 Mon Sep 17 00:00:00 2001 From: Sunmi Lee Date: Fri, 29 Dec 2017 16:07:32 +0900 Subject: [PATCH] [COMMON] fimc-is2: Fix a bug of calling condition for up(smp_trigger) with FRO Change-Id: I1d899c527a45e92016e34fbcd9a21adac26004b5 Signed-off-by: Sunmi Lee --- drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 263970efc058..c619b5ac4247 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 @@ -482,7 +482,7 @@ void tasklet_csis_str_otf(unsigned long data) backup_fcount = atomic_read(&group_sensor->backup_fcount); g_print_cnt = 0; #if defined(ENABLE_HW_FAST_READ_OUT) - if ((fcount + device->num_buffers - 1) % device->num_buffers == 0) + if ((fcount >= backup_fcount) || ((fcount + device->num_buffers - 2) % device->num_buffers == 0)) #else if (fcount + group_sensor->skip_shots > backup_fcount) #endif -- 2.20.1