From ff79083ff5f7cdbbd3b4138ad906e0f742b0f068 Mon Sep 17 00:00:00 2001 From: Wooyeon Kim Date: Tue, 7 Aug 2018 17:58:25 +0900 Subject: [PATCH] [COMMON] fimc-is2: add code related to initial AE for 6B2 PR JIRA ID: CPR-134 Change-Id: I425d87e072fc3488d8ff123d63dd568c6febe6f9 Signed-off-by: Wooyeon Kim --- .../fimc-is2/sensor/module_framework/cis/fimc-is-cis-6b2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-6b2.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-6b2.c index 23b770a9c05d..6adf6bc29d15 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-6b2.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-6b2.c @@ -1746,6 +1746,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_6b2_probe(struct i2c_client *client, @@ -1864,6 +1865,9 @@ static int cis_6b2_probe(struct i2c_client *client, sensor_6b2_max_setfile_num = sizeof(sensor_6b2_setfiles_A) / sizeof(sensor_6b2_setfiles_A[0]); } + 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