]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00181196-1 ov5640: fix the first frame of capture quality is bad
authorYuxi Sun <b36102@freescale.com>
Thu, 3 May 2012 02:40:18 +0000 (10:40 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:42 +0000 (14:11 +0200)
Add 300ms delay after download the inital setting

Signed-off-by: Yuxi Sun <b36102@freescale.com>
drivers/media/video/mxc/capture/mxc_v4l2_capture.c
drivers/media/video/mxc/capture/ov5640_mipi.c

index 9d5fd09ef48af64cee13a091d1fa33f11cb839aa..c2bac5cae74b745a822242fbf8d42b9a1b9b58ad 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/types.h>
 #include <linux/fb.h>
 #include <linux/dma-mapping.h>
+#include <linux/delay.h>
 #include <linux/mxcfb.h>
 #include <media/v4l2-chip-ident.h>
 #include <media/v4l2-ioctl.h>
@@ -1669,7 +1670,7 @@ static int mxc_v4l_open(struct file *file)
                vidioc_int_s_power(cam->sensor, 1);
                vidioc_int_init(cam->sensor);
                vidioc_int_dev_init(cam->sensor);
-}
+       }
 
        file->private_data = dev;
 
index 7069ce45a17a58aba502522c7b5b786b3fb4ebc1..09d41cb3363826ba7366389b5dfd6820a11d8e96 100644 (file)
@@ -169,7 +169,7 @@ static struct reg_value ov5640_init_setting_30fps_VGA[] = {
        {0x583b, 0x28, 0, 0}, {0x583c, 0x42, 0, 0}, {0x583d, 0xce, 0, 0},
        {0x5025, 0x00, 0, 0}, {0x3a0f, 0x30, 0, 0}, {0x3a10, 0x28, 0, 0},
        {0x3a1b, 0x30, 0, 0}, {0x3a1e, 0x26, 0, 0}, {0x3a11, 0x60, 0, 0},
-       {0x3a1f, 0x14, 0, 0}, {0x3008, 0x02, 0, 0}, {0x3c00, 0x04, 0, 0},
+       {0x3a1f, 0x14, 0, 0}, {0x3008, 0x02, 0, 0}, {0x3c00, 0x04, 0, 300},
 };
 
 static struct reg_value ov5640_setting_30fps_VGA_640_480[] = {