summaryrefslogtreecommitdiff
path: root/drivers/media/video/gspca/m5602
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-06-20 08:11:13 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-19 00:16:58 -0300
commit36e64d5cec0a210d87e8e8c02566a1cbe24c00f3 (patch)
tree587d33134abeaf0799599589b57122bbbd91fe27 /drivers/media/video/gspca/m5602
parentf1f59fe60e38c4c56b8acba9690cd08d86d2ac0e (diff)
V4L/DVB (12981): gspca - m5602-ov7660: Set blue and red gain at init
Signed-off-by: Erik Andrén <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/m5602')
-rw-r--r--drivers/media/video/gspca/m5602/m5602_ov7660.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_ov7660.c b/drivers/media/video/gspca/m5602/m5602_ov7660.c
index 00f8365db1a1..7d2af089ee99 100644
--- a/drivers/media/video/gspca/m5602/m5602_ov7660.c
+++ b/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;
}