From e94564e21c62e313dbe455db44acb9e8c0f92a0a Mon Sep 17 00:00:00 2001
From: Jungchi_Liao <Jungchi_Liao@asus.com>
Date: Wed, 4 Jul 2018 12:33:45 +0800
Subject: [PATCH] Use auto AE/AWB control form OV5647
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Change-Id: I991aa4c56a795b21dd28b45c9938624f6510dba6
Reviewed-on: https://tp-biosrd-v02/gerrit/83090
Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
---
 drivers/media/i2c/ov5647.c | 2 ++
 1 file changed, 2 insertions(+)
 mode change 100644 => 100755 drivers/media/i2c/ov5647.c

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},
