diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2018-02-20 23:46:49 +0000 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2019-05-01 11:51:27 +0100 |
commit | b0e2d96813c7fe9b849912e7ffa06152a9ee8c5d (patch) | |
tree | 755a7719dbadb0690aa1caf7e8856299265ec530 | |
parent | e61a3c6ff35357e27589937e5f9f8a2c66664e1c (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.c | 2 |
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; |