summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-05-03 20:51:36 +0200
committerErik Andrén <erik.andren@gmail.com>2009-05-03 20:51:36 +0200
commit5a57ca61d1316da19d76ac86ef8bf76b2f9b3746 (patch)
tree76f743cd272b89a145f40f552ff56bcf5c7c662d /linux/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c
parent310b6441c9746001ed44a26aa4167b198fa69cff (diff)
downloadmediapointer-dvb-s2-5a57ca61d1316da19d76ac86ef8bf76b2f9b3746.tar.gz
mediapointer-dvb-s2-5a57ca61d1316da19d76ac86ef8bf76b2f9b3746.tar.bz2
gspca - stv06xx-vv6410: Set analog gain at init
From: Erik Andrén <erik.andren@gmail.com> Set the analog gain at sensor init. Also set a sensible default value. Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c')
-rw-r--r--linux/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c b/linux/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c
index f6603a9de..11a0c002f 100644
--- a/linux/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c
+++ b/linux/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c
@@ -80,7 +80,7 @@ static const struct ctrl vv6410_ctrl[] = {
.minimum = 0,
.maximum = 15,
.step = 1,
- .default_value = 0
+ .default_value = 10
},
.set = vv6410_set_analog_gain,
.get = vv6410_get_analog_gain
@@ -162,6 +162,11 @@ static int vv6410_init(struct sd *sd)
err = vv6410_set_exposure(&sd->gspca_dev,
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;
}