From 9536d7332b8300ba434030ee3526c03c91f0df9f Mon Sep 17 00:00:00 2001 From: Guosong Zhou Date: Tue, 6 Aug 2019 02:32:20 -0400 Subject: [PATCH] camera: fix take picture stuck when camera recording [1/1] 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 --- drivers/amlogic/media/camera/gc2145_mipi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/amlogic/media/camera/gc2145_mipi.c b/drivers/amlogic/media/camera/gc2145_mipi.c index 837290c..a01edeb 100644 --- a/drivers/amlogic/media/camera/gc2145_mipi.c +++ b/drivers/amlogic/media/camera/gc2145_mipi.c @@ -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, -- 2.7.4