V4L/DVB (12981): gspca - m5602-ov7660: Set blue and red gain at init
authorErik Andrén <erik.andren@gmail.com>
Sat, 20 Jun 2009 11:11:13 +0000 (08:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 19 Sep 2009 03:16:58 +0000 (00:16 -0300)
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/m5602/m5602_ov7660.c

index 00f8365db1a10eebc623646e48085f9adfed2a5e..7d2af089ee99c3e8d0c572006b3ad7f09fd3e0c7 100644 (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;
 }