[COMMON] fimc-is2: Fix a bug of calling condition for up(smp_trigger) with FRO
authorSunmi Lee <carrotsm.lee@samsung.com>
Fri, 29 Dec 2017 07:07:32 +0000 (16:07 +0900)
committerEunyoung Lee <ey470.lee@samsung.com>
Tue, 19 Jun 2018 08:43:26 +0000 (17:43 +0900)
Change-Id: I1d899c527a45e92016e34fbcd9a21adac26004b5
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c

index 263970efc058f58ba8c1a572c5f241425874aff2..c619b5ac4247252c7e04fa49255ca79dfa0915bc 100644 (file)
@@ -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