V4L/DVB (12090): gspca_sonixj: enable autogain control for the ov7620
authorHans de Goede <hdegoede@redhat.com>
Thu, 18 Jun 2009 09:05:07 +0000 (06:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 23 Jun 2009 06:13:45 +0000 (03:13 -0300)
gspca_sonixj: enable autogain control for the ov7620, and not only
make it enable autogain but also auto exposure (and do the
same for the ov7648).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/sonixj.c

index 46988120ec65187e5d76e32ea77ab13d56f46efc..6f475b471fb9eea76fd47f14083e26f596ea6224 100644 (file)
@@ -251,7 +251,7 @@ static __u32 ctrl_dis[] = {
                                                /* SENSOR_MT9V111 3 */
        (1 << INFRARED_IDX) | (1 << VFLIP_IDX),
                                                /* SENSOR_OM6802 4 */
-       (1 << AUTOGAIN_IDX) | (1 << INFRARED_IDX),
+       (1 << INFRARED_IDX),
                                                /* SENSOR_OV7630 5 */
        (1 << INFRARED_IDX),
                                                /* SENSOR_OV7648 6 */
@@ -1577,7 +1577,7 @@ static void setautogain(struct gspca_dev *gspca_dev)
                else
                        comb = 0xa0;
                if (sd->autogain)
-                       comb |= 0x02;
+                       comb |= 0x03;
                i2c_w1(&sd->gspca_dev, 0x13, comb);
                return;
            }
This page took 0.034435 seconds and 5 git commands to generate.