From e7d9f4285069693d7fd87a1fd2dfd29d8e15104d Mon Sep 17 00:00:00 2001 From: Wooyeon Kim Date: Wed, 20 Feb 2019 13:21:48 +0900 Subject: [PATCH] [COMMON] fimc-is2: do not duplicate dw9839 actuator init - Due to not used a AF cal at actuator dw9839, skip second actuator init operation. PR JIRA ID: CPR-719 Change-Id: I4c7bedcfeb272266a9d9e85dbd35a5d1422f6504 Signed-off-by: Wooyeon Kim --- .../sensor/module_framework/actuator/fimc-is-actuator-dw9839.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9839.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9839.c index f3afbb6eb8b5..8acc9891610a 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9839.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/actuator/fimc-is-actuator-dw9839.c @@ -492,6 +492,8 @@ int sensor_dw9839_actuator_get_actual_position(struct v4l2_subdev *subdev, u32 * pr_info("[%s] time %lu us", __func__, (end.tv_sec - st.tv_sec) * 1000000 + (end.tv_usec - st.tv_usec)); #endif + /* dw9839 actuator do not use af cal */ + actuator->actuator_data.actuator_init = false; p_err: I2C_MUTEX_UNLOCK(actuator->i2c_lock); -- 2.20.1