aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-06-20 07:11:13 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:16:58 -0400
commit36e64d5cec0a210d87e8e8c02566a1cbe24c00f3 (patch)
tree587d33134abeaf0799599589b57122bbbd91fe27 /drivers/media/video
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')
-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)
204 204
205 err = ov7660_set_auto_white_balance(&sd->gspca_dev, 205 err = ov7660_set_auto_white_balance(&sd->gspca_dev,
206 sensor_settings[AUTO_WHITE_BALANCE_IDX]); 206 sensor_settings[AUTO_WHITE_BALANCE_IDX]);
207 if (err < 0)
208 return err;
209
210 err = ov7660_set_blue_gain(&sd->gspca_dev,
211 sensor_settings[BLUE_BALANCE_IDX]);
212 if (err < 0)
213 return err;
214
215 err = ov7660_set_red_gain(&sd->gspca_dev,
216 sensor_settings[RED_BALANCE_IDX]);
207 217
208 return err; 218 return err;
209} 219}