aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/sonixj.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-06-18 05:05:07 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-23 02:13:45 -0400
commit1fec747cd389b4812a9932a1416d76e8a53596b2 (patch)
tree9af3bf62f0927c45ee497d6801cb8070ba90e0b7 /drivers/media/video/gspca/sonixj.c
parenta5d1cc39fee739cf4fc2a1f43da812c50de9d3d6 (diff)
V4L/DVB (12090): gspca_sonixj: enable autogain control for the ov7620
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>
Diffstat (limited to 'drivers/media/video/gspca/sonixj.c')
-rw-r--r--drivers/media/video/gspca/sonixj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c
index 46988120ec65..6f475b471fb9 100644
--- a/drivers/media/video/gspca/sonixj.c
+++ b/drivers/media/video/gspca/sonixj.c
@@ -251,7 +251,7 @@ static __u32 ctrl_dis[] = {
251 /* SENSOR_MT9V111 3 */ 251 /* SENSOR_MT9V111 3 */
252 (1 << INFRARED_IDX) | (1 << VFLIP_IDX), 252 (1 << INFRARED_IDX) | (1 << VFLIP_IDX),
253 /* SENSOR_OM6802 4 */ 253 /* SENSOR_OM6802 4 */
254 (1 << AUTOGAIN_IDX) | (1 << INFRARED_IDX), 254 (1 << INFRARED_IDX),
255 /* SENSOR_OV7630 5 */ 255 /* SENSOR_OV7630 5 */
256 (1 << INFRARED_IDX), 256 (1 << INFRARED_IDX),
257 /* SENSOR_OV7648 6 */ 257 /* SENSOR_OV7648 6 */
@@ -1577,7 +1577,7 @@ static void setautogain(struct gspca_dev *gspca_dev)
1577 else 1577 else
1578 comb = 0xa0; 1578 comb = 0xa0;
1579 if (sd->autogain) 1579 if (sd->autogain)
1580 comb |= 0x02; 1580 comb |= 0x03;
1581 i2c_w1(&sd->gspca_dev, 0x13, comb); 1581 i2c_w1(&sd->gspca_dev, 0x13, comb);
1582 return; 1582 return;
1583 } 1583 }