From c8f8113dc49ae4b98a2cb729a9d9fc6c0e623dd7 Mon Sep 17 00:00:00 2001 From: ddl Date: Fri, 20 May 2011 18:19:45 +0800 Subject: [PATCH] camera: fix ov5642 driver white balance(auto) may be error after capture frequently --- drivers/media/video/ov5642.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/drivers/media/video/ov5642.c b/drivers/media/video/ov5642.c index 1c3577991337..ecbb0969c6c2 100755 --- a/drivers/media/video/ov5642.c +++ b/drivers/media/video/ov5642.c @@ -2483,8 +2483,8 @@ static struct reginfo sensor_svga[] = {0x3827,0x08}, {0x3a00,0x78}, { 0x3011, 0x08 }, - { 0x3c01, 0x80 }, - { 0x3c00, 0x00 }, + { 0x3c01, 0x00 }, + { 0x3c00, 0x00 }, {0x3a08,0x09}, {0x3a09,0x60}, {0x3a0a,0x07}, @@ -2695,10 +2695,24 @@ static struct reginfo sensor_ClrFmt_UYVY[]= #if CONFIG_SENSOR_WhiteBalance static struct reginfo sensor_WhiteB_Auto[]= { - {0x3406,0x00}, - {0x5183,0x80}, - {0x5191,0xff}, - {0x5192,0x00}, + {0x3406 ,0x0 }, + {0x5192 ,0x04}, + {0x5191 ,0xf8}, + {0x518d ,0x26}, + {0x518f ,0x42}, + {0x518e ,0x2b}, + {0x5190 ,0x42}, + {0x518b ,0xd0}, + {0x518c ,0xbd}, + {0x5187 ,0x18}, + {0x5188 ,0x18}, + {0x5189 ,0x56}, + {0x518a ,0x5c}, + {0x5186 ,0x1c}, + {0x5181 ,0x50}, + {0x5184 ,0x20}, + {0x5182 ,0x11}, + {0x5183 ,0x0 }, {0x0000,0x00} }; /* Cloudy Colour Temperature : 6500K - 8000K */ -- 2.34.1