From: Sanghoon Lee Date: Tue, 19 Jun 2018 07:45:44 +0000 (+0900) Subject: [HACK][COMMON] fimc-is2: Skip to select DVFS scenario for VRA in reprocessing instance X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0d4b71b3f26eccd8e25cdf1ffe7f92796d8a80c4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [HACK][COMMON] fimc-is2: Skip to select DVFS scenario for VRA in reprocessing instance When user opens VRA within reprocessing stream, it should not trigger the DVFS level change because DVFS level is decided by ischain scenario that is before VRA. Change-Id: I5dd1484fe4e1f87ae2935dd9bfff703f1c02a3ba Signed-off-by: Sanghoon Lee --- diff --git a/drivers/media/platform/exynos/fimc-is2/fimc-is-dvfs.c b/drivers/media/platform/exynos/fimc-is2/fimc-is-dvfs.c index baecbe6e054e..3213c505537b 100644 --- a/drivers/media/platform/exynos/fimc-is2/fimc-is-dvfs.c +++ b/drivers/media/platform/exynos/fimc-is2/fimc-is-dvfs.c @@ -306,7 +306,7 @@ int fimc_is_dvfs_sel_dynamic(struct fimc_is_device_ischain *device, struct fimc_ } } - if (!test_bit(FIMC_IS_ISCHAIN_REPROCESSING, &device->state)) + if (!test_bit(FIMC_IS_ISCHAIN_REPROCESSING, &device->state) || group->id == GROUP_ID_VRA0) return -EAGAIN; position = fimc_is_sensor_g_position(device->sensor);