Skip to content

Commit

Permalink
V4L/DVB (12090): gspca_sonixj: enable autogain control for the ov7620
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Jun 23, 2009
1 parent a5d1cc3 commit 1fec747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/gspca/sonixj.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 1fec747

Please sign in to comment.