diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-01-09 17:45:44 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:40 -0500 |
commit | 8d0082fa3f3ac978075439e73b4a36ca0715e747 (patch) | |
tree | 35051fad00a016c59a45a3dfcc81ddaa05da65c5 /drivers/media/video/gspca/ov519.c | |
parent | d02134ddb6fc351ab25028bfb45a53d08a2bcfbf (diff) |
V4L/DVB (14000): gspca_ov519: ov764x remove setting of AEC limits
ov764x remove setting of AEC limits, as the custom values cause AEC
oscilation in 320x240.
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/ov519.c')
-rw-r--r-- | drivers/media/video/gspca/ov519.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c index f94f41eb222..541b8f0b0d3 100644 --- a/drivers/media/video/gspca/ov519.c +++ b/drivers/media/video/gspca/ov519.c | |||
@@ -3689,14 +3689,12 @@ static int mode_init_ov_sensor_regs(struct sd *sd) | |||
3689 | case SEN_OV7648: | 3689 | case SEN_OV7648: |
3690 | i2c_w_mask(sd, 0x14, qvga ? 0x20 : 0x00, 0x20); | 3690 | i2c_w_mask(sd, 0x14, qvga ? 0x20 : 0x00, 0x20); |
3691 | i2c_w_mask(sd, 0x28, qvga ? 0x00 : 0x20, 0x20); | 3691 | i2c_w_mask(sd, 0x28, qvga ? 0x00 : 0x20, 0x20); |
3692 | /* The following 5 lines where commented out before with a | 3692 | /* Setting this undocumented bit in qvga mode removes a very |
3693 | comment wondering if they did anything. This was because | 3693 | annoying vertical shaking of the image */ |
3694 | the old driver did only 640x480, at 320x240 these 5 writes | ||
3695 | *significantly* improve the image quality. */ | ||
3696 | i2c_w(sd, 0x24, qvga ? 0x20 : 0x3a); | ||
3697 | i2c_w(sd, 0x25, qvga ? 0x30 : 0x60); | ||
3698 | i2c_w_mask(sd, 0x2d, qvga ? 0x40 : 0x00, 0x40); | 3694 | i2c_w_mask(sd, 0x2d, qvga ? 0x40 : 0x00, 0x40); |
3695 | /* Unknown */ | ||
3699 | i2c_w_mask(sd, 0x67, qvga ? 0xf0 : 0x90, 0xf0); | 3696 | i2c_w_mask(sd, 0x67, qvga ? 0xf0 : 0x90, 0xf0); |
3697 | /* Allow higher automatic gain (to allow higher framerates) */ | ||
3700 | i2c_w_mask(sd, 0x74, qvga ? 0x20 : 0x00, 0x20); | 3698 | i2c_w_mask(sd, 0x74, qvga ? 0x20 : 0x00, 0x20); |
3701 | i2c_w_mask(sd, 0x12, 0x04, 0x04); /* AWB: 1 */ | 3699 | i2c_w_mask(sd, 0x12, 0x04, 0x04); /* AWB: 1 */ |
3702 | break; | 3700 | break; |