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>
This commit is contained in:
Erik Andrén 2009-06-20 08:11:13 -03:00 committed by Mauro Carvalho Chehab
parent f1f59fe60e
commit 36e64d5cec

View file

@ -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;
}