diff options
author | Erik Andrén <erik.andren@gmail.com> | 2009-05-03 14:51:36 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 17:20:53 -0400 |
commit | 17720e07b6ac573c8929c39f9036dbc460867b72 (patch) | |
tree | 0a53efb6986017bf828ff7075d98d6735b77414d /drivers/media | |
parent | 28d7a20a7849e11173206db560aa76113ed4f62e (diff) |
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: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c b/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c index f6603a9deab8..11a0c002f5dc 100644 --- a/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c +++ b/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c | |||
@@ -80,7 +80,7 @@ static const struct ctrl vv6410_ctrl[] = { | |||
80 | .minimum = 0, | 80 | .minimum = 0, |
81 | .maximum = 15, | 81 | .maximum = 15, |
82 | .step = 1, | 82 | .step = 1, |
83 | .default_value = 0 | 83 | .default_value = 10 |
84 | }, | 84 | }, |
85 | .set = vv6410_set_analog_gain, | 85 | .set = vv6410_set_analog_gain, |
86 | .get = vv6410_get_analog_gain | 86 | .get = vv6410_get_analog_gain |
@@ -162,6 +162,11 @@ static int vv6410_init(struct sd *sd) | |||
162 | 162 | ||
163 | err = vv6410_set_exposure(&sd->gspca_dev, | 163 | err = vv6410_set_exposure(&sd->gspca_dev, |
164 | sensor_settings[EXPOSURE_IDX]); | 164 | sensor_settings[EXPOSURE_IDX]); |
165 | if (err < 0) | ||
166 | return err; | ||
167 | |||
168 | err = vv6410_set_analog_gain(&sd->gspca_dev, | ||
169 | sensor_settings[GAIN_IDX]); | ||
165 | 170 | ||
166 | return (err < 0) ? err : 0; | 171 | return (err < 0) ? err : 0; |
167 | } | 172 | } |