From 4a6e177953f276a939a2db4eae3f6daf11a7f7c4 Mon Sep 17 00:00:00 2001 From: Wooyeon Kim Date: Thu, 4 Apr 2019 14:40:22 +0900 Subject: [PATCH] [COMMON] fimc-is2: fix 2X5SP LTE capture cancel freeze PR JIRA ID: CPR-914 Change-Id: I573445914d43a06b5a56f3d93bfbe2e9b7a0e503 Signed-off-by: Wooyeon Kim --- .../sensor/module_framework/cis/fimc-is-cis-2x5sp.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; -- 2.20.1