camera: fix take picture stuck when camera recording [1/1]
authorGuosong Zhou <guosong.zhou@amlogic.com>
Tue, 6 Aug 2019 06:32:20 +0000 (02:32 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 9 Aug 2019 06:28:25 +0000 (23:28 -0700)
PD#SWPL-12300

Problem:
gc2145 mipi camera take picture will stuck when recording

Solution:
add the right size to picture array

Verify:
verify on S905D3

Change-Id: Iee797d59053050d41448fda601a3bd7226cf9f37
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
drivers/amlogic/media/camera/gc2145_mipi.c

index 837290c..a01edeb 100644 (file)
@@ -1596,6 +1596,14 @@ static struct resolution_param  capture_resolution_array[] = {
                .size_type          = SIZE_800X600,
                .reg_script         = GC2145_capture_SVGA_script,
        }, {
+               .frmsize            = {1280, 720},
+               .active_frmsize     = {1280, 720},
+               .active_fps         = 30,
+               .lanes              = 2,
+               .bps                = 480,
+               .size_type          = SIZE_1280X720,
+               .reg_script         = GC2145_preview_720P_script,
+       }, {
                .frmsize            = {1600, 1200},
                .active_frmsize     = {1600, 1200},
                .active_fps         = 20,