summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2018-02-20 23:46:49 +0000
committerBryan O'Donoghue <bryan.odonoghue@linaro.org>2019-05-01 11:51:27 +0100
commitb0e2d96813c7fe9b849912e7ffa06152a9ee8c5d (patch)
tree755a7719dbadb0690aa1caf7e8856299265ec530
parente61a3c6ff35357e27589937e5f9f8a2c66664e1c (diff)
media: ov2680: set auto gain default to enable
To represent the initial status of the registers regarding the auto gain control, make sure to set the default value to 1. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
-rw-r--r--drivers/media/i2c/ov2680.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c
index 8647ff0af2e4..5de332e5d87d 100644
--- a/drivers/media/i2c/ov2680.c
+++ b/drivers/media/i2c/ov2680.c
@@ -984,7 +984,7 @@ static int ov2680_v4l2_init(struct ov2680_dev *sensor)
ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE;
ctrls->exposure->flags |= V4L2_CTRL_FLAG_VOLATILE;
- v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 0, true);
+ v4l2_ctrl_auto_cluster(2, &ctrls->auto_gain, 1, true);
v4l2_ctrl_auto_cluster(2, &ctrls->auto_exp, 1, true);
sensor->sd.ctrl_handler = hdl;