From 4621a9fcbc8e25d719a372e221ec581e62189b2d Mon Sep 17 00:00:00 2001 From: Yuxi Sun Date: Thu, 3 May 2012 10:40:18 +0800 Subject: [PATCH] ENGR00181196-1 ov5640: fix the first frame of capture quality is bad Add 300ms delay after download the inital setting Signed-off-by: Yuxi Sun --- drivers/media/video/mxc/capture/mxc_v4l2_capture.c | 3 ++- drivers/media/video/mxc/capture/ov5640_mipi.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/mxc/capture/mxc_v4l2_capture.c b/drivers/media/video/mxc/capture/mxc_v4l2_capture.c index 9d5fd09ef48a..c2bac5cae74b 100644 --- a/drivers/media/video/mxc/capture/mxc_v4l2_capture.c +++ b/drivers/media/video/mxc/capture/mxc_v4l2_capture.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -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; diff --git a/drivers/media/video/mxc/capture/ov5640_mipi.c b/drivers/media/video/mxc/capture/ov5640_mipi.c index 7069ce45a17a..09d41cb33638 100644 --- a/drivers/media/video/mxc/capture/ov5640_mipi.c +++ b/drivers/media/video/mxc/capture/ov5640_mipi.c @@ -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[] = { -- 2.39.5