camera: fix gc2145 mipi camera mirror [1/1]
authorGuosong Zhou <guosong.zhou@amlogic.com>
Mon, 26 Aug 2019 11:14:35 +0000 (07:14 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 28 Aug 2019 02:56:54 +0000 (19:56 -0700)
PD#SWPL-12760

Problem:
camera preview interface left and right invert

Solution:
adjust gc2145 mipi camera mirror register

Verify:
S905D3-AC200

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

index a01edebaa8f4ad108b8c19f48e20fc36acba2340..f251ef6a086a93f6d0682b9d1cc8d1aa0be8e682 100644 (file)
@@ -2006,7 +2006,7 @@ static int set_resolution_param(struct gc2145_device *dev,
                i++;
        }
        dev->cur_resolution_param = res_param;
-       set_flip(dev, NORMAL);
+       set_flip(dev, H_MIRROR);
 
        return 0;
 }