提交 17720e07 编写于 作者: E Erik Andrén 提交者: Mauro Carvalho Chehab

V4L/DVB (11695): gspca - stv06xx-vv6410: Set analog gain at init

Set the analog gain at sensor init. Also set a sensible default value.
Signed-off-by: NErik Andrén <erik.andren@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 28d7a20a
...@@ -80,7 +80,7 @@ static const struct ctrl vv6410_ctrl[] = { ...@@ -80,7 +80,7 @@ static const struct ctrl vv6410_ctrl[] = {
.minimum = 0, .minimum = 0,
.maximum = 15, .maximum = 15,
.step = 1, .step = 1,
.default_value = 0 .default_value = 10
}, },
.set = vv6410_set_analog_gain, .set = vv6410_set_analog_gain,
.get = vv6410_get_analog_gain .get = vv6410_get_analog_gain
...@@ -162,6 +162,11 @@ static int vv6410_init(struct sd *sd) ...@@ -162,6 +162,11 @@ static int vv6410_init(struct sd *sd)
err = vv6410_set_exposure(&sd->gspca_dev, err = vv6410_set_exposure(&sd->gspca_dev,
sensor_settings[EXPOSURE_IDX]); sensor_settings[EXPOSURE_IDX]);
if (err < 0)
return err;
err = vv6410_set_analog_gain(&sd->gspca_dev,
sensor_settings[GAIN_IDX]);
return (err < 0) ? err : 0; return (err < 0) ? err : 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册