[COMMON] fimc-is2: add code related to initial AE for 6B2
authorWooyeon Kim <wooy88.kim@samsung.com>
Tue, 7 Aug 2018 08:58:25 +0000 (17:58 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:58 +0000 (20:22 +0300)
 PR JIRA ID: CPR-134

Change-Id: I425d87e072fc3488d8ff123d63dd568c6febe6f9
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-6b2.c

index 23b770a9c05d2e40cee0ed0aed098f86a0ad9a9a..6adf6bc29d15148b340a50f75050bf7054877b7e 100644 (file)
@@ -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);