From: Wooyeon Kim Date: Thu, 4 Apr 2019 05:40:22 +0000 (+0900) Subject: [COMMON] fimc-is2: fix 2X5SP LTE capture cancel freeze X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=99a77320cbe539cc8ae8da8e292a124e85c85126;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: fix 2X5SP LTE capture cancel freeze PR JIRA ID: CPR-914 Change-Id: I573445914d43a06b5a56f3d93bfbe2e9b7a0e503 Signed-off-by: Wooyeon Kim --- diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2x5sp.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2x5sp.c index acd4319645d0..c569d1b1c0c8 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2x5sp.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2x5sp.c @@ -868,8 +868,17 @@ int sensor_2x5sp_cis_stream_off(struct v4l2_subdev *subdev) if (ret < 0) err("group_param_hold_func failed at stream off"); - /* Sensor stream off */ fimc_is_sensor_write16(client, 0x6028, 0x4000); + + /* during LEC mode, clear 0x0BCC before stream off for next frame + * After cancelled, restore value + */ + if (cis->long_term_mode.sen_strm_off_on_enable) + fimc_is_sensor_write8(client, 0x0BCC, 0); + else + fimc_is_sensor_write8(client, 0x0BCC, 0x1); + + /* Sensor stream off */ fimc_is_sensor_write8(client, 0x0100, 0x00); cis_data->stream_on = false;