build/patch/kernel/archive/rockchip64-4.4/323_ov5647_ae_awb_control.patch

39 lines
1.1 KiB
Diff
Raw Normal View History

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jungchi_Liao <Jungchi_Liao@asus.com>
Date: Wed, 4 Jul 2018 12:33:45 +0800
Subject: Use auto AE/AWB control form OV5647
Change-Id: I991aa4c56a795b21dd28b45c9938624f6510dba6
Reviewed-on: https://tp-biosrd-v02/gerrit/83090
Reviewed-by: Jamess Huang(Huang Yi Min ) <Jamess_Huang@asus.com>
Tested-by: Jamess Huang(Huang Yi Min ) <Jamess_Huang@asus.com>
---
drivers/media/i2c/ov5647.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/media/i2c/ov5647.c b/drivers/media/i2c/ov5647.c
old mode 100644
new mode 100755
index b8b011ece42f..cdd77b868eb0
--- a/drivers/media/i2c/ov5647.c
+++ b/drivers/media/i2c/ov5647.c
@@ -158,6 +158,7 @@ static struct regval_list ov5647_common_regs[] = {
{0x3a1f, 0x28},
{0x4001, 0x02},
{0x4000, 0x09},
+#if 0 // use auto AE/AWB control from sensor
{0x3503, 0x03}, /* manual,0xAE */
{0x3500, 0x00},
{0x3501, 0x6f},
@@ -173,6 +174,7 @@ static struct regval_list ov5647_common_regs[] = {
{0x518a, 0x04},
{0x518b, 0x00},
{0x5000, 0x00}, /* lenc WBC on */
+#endif
{0x3011, 0x62},
/* mipi */
{0x3016, 0x08},
--
Armbian