mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 14:14:01 +08:00
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>
This commit is contained in:
parent
d02134ddb6
commit
8d0082fa3f
@ -3689,14 +3689,12 @@ static int mode_init_ov_sensor_regs(struct sd *sd)
|
|||||||
case SEN_OV7648:
|
case SEN_OV7648:
|
||||||
i2c_w_mask(sd, 0x14, qvga ? 0x20 : 0x00, 0x20);
|
i2c_w_mask(sd, 0x14, qvga ? 0x20 : 0x00, 0x20);
|
||||||
i2c_w_mask(sd, 0x28, qvga ? 0x00 : 0x20, 0x20);
|
i2c_w_mask(sd, 0x28, qvga ? 0x00 : 0x20, 0x20);
|
||||||
/* The following 5 lines where commented out before with a
|
/* Setting this undocumented bit in qvga mode removes a very
|
||||||
comment wondering if they did anything. This was because
|
annoying vertical shaking of the image */
|
||||||
the old driver did only 640x480, at 320x240 these 5 writes
|
|
||||||
*significantly* improve the image quality. */
|
|
||||||
i2c_w(sd, 0x24, qvga ? 0x20 : 0x3a);
|
|
||||||
i2c_w(sd, 0x25, qvga ? 0x30 : 0x60);
|
|
||||||
i2c_w_mask(sd, 0x2d, qvga ? 0x40 : 0x00, 0x40);
|
i2c_w_mask(sd, 0x2d, qvga ? 0x40 : 0x00, 0x40);
|
||||||
|
/* Unknown */
|
||||||
i2c_w_mask(sd, 0x67, qvga ? 0xf0 : 0x90, 0xf0);
|
i2c_w_mask(sd, 0x67, qvga ? 0xf0 : 0x90, 0xf0);
|
||||||
|
/* Allow higher automatic gain (to allow higher framerates) */
|
||||||
i2c_w_mask(sd, 0x74, qvga ? 0x20 : 0x00, 0x20);
|
i2c_w_mask(sd, 0x74, qvga ? 0x20 : 0x00, 0x20);
|
||||||
i2c_w_mask(sd, 0x12, 0x04, 0x04); /* AWB: 1 */
|
i2c_w_mask(sd, 0x12, 0x04, 0x04); /* AWB: 1 */
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user