From 2cceeffa1af2b9331e9a4c0fa16046a4cd55d27c Mon Sep 17 00:00:00 2001 From: Wooyeon Kim Date: Tue, 7 Aug 2018 17:54:31 +0900 Subject: [PATCH] [COMMON] fimc-is2: add code related to initial AE for 2T7SX PR JIRA ID: CPR-134 Change-Id: Id77783ad9d32d165f3b613bfa07fc8e6aab34d30 Signed-off-by: Wooyeon Kim --- .../fimc-is2/sensor/module_framework/cis/fimc-is-cis-2t7sx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2t7sx.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2t7sx.c index b98047a6cb19..0faaf7716369 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2t7sx.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2t7sx.c @@ -1653,6 +1653,7 @@ static struct fimc_is_cis_ops cis_ops = { .cis_compensate_gain_for_extremely_br = sensor_cis_compensate_gain_for_extremely_br, .cis_wait_streamoff = sensor_cis_wait_streamoff, .cis_wait_streamon = sensor_cis_wait_streamon, + .cis_set_initial_exposure = sensor_cis_set_initial_exposure, }; static int cis_2t7sx_probe(struct i2c_client *client, @@ -1776,6 +1777,9 @@ static int cis_2t7sx_probe(struct i2c_client *client, sensor_2t7sx_max_setfile_num = ARRAY_SIZE(sensor_2t7sx_setfiles_A); } + cis->use_initial_ae = of_property_read_bool(dnode, "use_initial_ae"); + probe_info("%s use initial_ae(%d)\n", __func__, cis->use_initial_ae); + v4l2_i2c_subdev_init(subdev_cis, client, &subdev_ops); v4l2_set_subdevdata(subdev_cis, cis); v4l2_set_subdev_hostdata(subdev_cis, device); -- 2.20.1