From: Sunmi Lee Date: Fri, 29 Dec 2017 07:07:32 +0000 (+0900) Subject: [COMMON] fimc-is2: Fix a bug of calling condition for up(smp_trigger) with FRO X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=55fc4cc92a45e78083eff6eb22a6d2878d693836;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: Fix a bug of calling condition for up(smp_trigger) with FRO Change-Id: I1d899c527a45e92016e34fbcd9a21adac26004b5 Signed-off-by: Sunmi Lee --- 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