Fix dcamera inaccurate fps on OP3T and LP3 (#2305)

* fix op3t pclk

* fix leeco fps
This commit is contained in:
ZwX1616 2020-10-09 11:26:32 -07:00 committed by GitHub
parent cfd16faad2
commit 84e83e88a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -307,12 +307,12 @@ void cameras_init(MultiCameraState *s) {
if (s->device == DEVICE_OP3T) {
camera_init(&s->front, CAMERA_ID_S5K3P8SP, 1,
/*pixel_clock=*/561000000, /*line_length_pclk=*/5120,
/*pixel_clock=*/560000000, /*line_length_pclk=*/5120,
/*max_gain=*/510, 10);
s->front.apply_exposure = imx179_s5k3p8sp_apply_exposure;
} else if (s->device == DEVICE_LP3) {
camera_init(&s->front, CAMERA_ID_OV8865, 1,
/*pixel_clock=*/251200000, /*line_length_pclk=*/7000,
/*pixel_clock=*/72000000, /*line_length_pclk=*/1602,
/*max_gain=*/510, 10);
s->front.apply_exposure = ov8865_apply_exposure;
} else {

View file

@ -1810,8 +1810,8 @@ static struct msm_camera_i2c_reg_array init_array_ov8865[] = {
{0x3806,0x9,0}, {0x3807,0xa3,0}, // 2467
{0x3808,0x6,0}, {0x3809,0x60,0}, // 0x660 = 1632 (width)
{0x380a,0x4,0}, {0x380b,0xc8,0}, // 0x4c8 = 1224 (height)
{0x380c,0x7,0}, {0x380d,0x83,0}, // 0x783 = 1923 (stride)
{0x380e,0x4,0}, {0x380f,0xe0,0}, // 0x4e0 = 1248 (vstride)
{0x380c,0x6,0}, {0x380d,0x42,0}, // line_length_pck
{0x380e,0x5,0}, {0x380f,0xda,0}, // frame_length_lines
{0x3810,0x0,0}, {0x3811,0x4,0}, {0x3813,0x4,0},
{0x3814,0x3,0}, {0x3815,0x1,0}, // H-binning
{0x3820,0x6,0}, // format1