summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/m5602
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-06-20 13:11:13 +0200
committerErik Andrén <erik.andren@gmail.com>2009-06-20 13:11:13 +0200
commit6f1555efdcffb62297e3ca1459e7d4c085c334bb (patch)
treed8da0273a452ef196734eb28fb6d8c497846a347 /linux/drivers/media/video/gspca/m5602
parent0067fc823b4d7fe4d598f8f9c8f9aa794b5da5c2 (diff)
downloadmediapointer-dvb-s2-6f1555efdcffb62297e3ca1459e7d4c085c334bb.tar.gz
mediapointer-dvb-s2-6f1555efdcffb62297e3ca1459e7d4c085c334bb.tar.bz2
gspca - m5602-ov7660: Set blue and red gain at init
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/m5602')
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_ov7660.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_ov7660.c b/linux/drivers/media/video/gspca/m5602/m5602_ov7660.c
index 00f8365db..7d2af089e 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_ov7660.c
+++ b/linux/drivers/media/video/gspca/m5602/m5602_ov7660.c
@@ -204,6 +204,16 @@ int ov7660_init(struct sd *sd)
err = ov7660_set_auto_white_balance(&sd->gspca_dev,
sensor_settings[AUTO_WHITE_BALANCE_IDX]);
+ if (err < 0)
+ return err;
+
+ err = ov7660_set_blue_gain(&sd->gspca_dev,
+ sensor_settings[BLUE_BALANCE_IDX]);
+ if (err < 0)
+ return err;
+
+ err = ov7660_set_red_gain(&sd->gspca_dev,
+ sensor_settings[RED_BALANCE_IDX]);
return err;
}