Fix dcamera inaccurate fps on OP3T and LP3 (#2305)
* fix op3t pclk * fix leeco fps
This commit is contained in:
parent
cfd16faad2
commit
84e83e88a3
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue