From: Yong He <yong.m...@intel.com>
Subject: [PATCH] MRST Tablet camera driver ver-0.959, fix 9947

Bug 9947 - when switch to a new resolution,
Back camera need to skip first frame after turn on streaming

move the delay to ISP for snapshot only (preview do not need delay)
and increase the total delay time to 450 (3 frame) in order to get
good picture quality

Signed-off-by: Yong He <yong.m...@intel.com>
Index: linux-2.6.37/drivers/staging/mrstci/mrstisp/mrstisp_main.c
===================================================================
--- linux-2.6.37/drivers/staging/mrstci/mrstisp/mrstisp_main.c   (revision 130)
+++ linux-2.6.37/drivers/staging/mrstci/mrstisp/mrstisp_main.c          
(revision 132)
@@ -1090,6 +1090,10 @@
       if (isp->pixelformat == V4L2_PIX_FMT_JPEG) {
                mrst_isp_disable_interrupt(isp);
                v4l2_subdev_call(camera, video, s_stream, 1);
+                if ((!strcmp(to_sensor_config(camera)->name, "ov5640")) ||
+                          (!strcmp(to_sensor_config(camera)->name, "ov9740"))) 
{
+                          msleep(400);
+                }
                dev_dbg(&isp->vdev->dev, "init JPEG encoder");
                ci_isp_jpe_init_ex(isp->bufwidth, isp->bufheight,
                                      isp->sys_conf.isp_cfg.jpeg_enc_ratio,
Index: linux-2.6.37/drivers/staging/mrstci/mrstov5640/mrstov5640.c
===================================================================
--- linux-2.6.37/drivers/staging/mrstci/mrstov5640/mrstov5640.c        
(revision 130)
+++ linux-2.6.37/drivers/staging/mrstci/mrstov5640/mrstov5640.c     (revision 
132)
@@ -50,7 +50,7 @@
#include "ci_sensor_common.h"
#include "ov5640.h"
-#define DRIVER_VERSION "0.957"
+#define DRIVER_VERSION "0.959"
 #define GPIO_FLASH 45
static int ov5640_flash=0;
@@ -2479,7 +2479,7 @@
                                   dev_dbg(sd->v4l2_dev->dev, "ov5640_af_init 
error - (%d)\n",
                                                      af_fw_status);
                          }
-                           msleep(300);
+                          msleep(50);
                }
       } else {
                ov5640_set_aec_agc(client, 0);
Index: linux-2.6.37/drivers/staging/mrstci/mrstov9740/mrstov9740.c
===================================================================
--- linux-2.6.37/drivers/staging/mrstci/mrstov9740/mrstov9740.c        
(revision 130)
+++ linux-2.6.37/drivers/staging/mrstci/mrstov9740/mrstov9740.c     (revision 
132)
@@ -47,7 +47,7 @@
#include "ci_sensor_common.h"
#include "ov9740.h"
-#define DRIVER_VERSION "0.957"
+#define DRIVER_VERSION "0.959"
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 #define DBG_entering  pr_debug("%s entering", __func__);
@@ -1957,7 +1957,7 @@
                          "set stream on, sleep 300 ms for sensor 
adjusting...\n");
                ov9740_write(client, 0x0100, 0x01);
                ov9740_set_aec_agc(client, 1);
-                 msleep(300);
+                msleep(50);
       } else if ((!enable) && (ov9740_status.stream_on == OV9740_STREAM_ON)) {
                /* Turn off streaming if current status is on */
                ov9740_status.stream_on = OV9740_STREAM_OFF;

Best Regards,

Yong He
Software Engineer, PCSD SW Solutions,
Intel Asia-Pacific R&D Ltd.
Phone (+86) 21-61166334
Lab (+86) 21-61167881

Attachment: linux-2.6.37-camera-ov5640-ov9740-version-0.958_to_0.959.patch
Description: linux-2.6.37-camera-ov5640-ov9740-version-0.958_to_0.959.patch

_______________________________________________
MeeGo-kernel mailing list
MeeGo-kernel@lists.meego.com
http://lists.meego.com/listinfo/meego-kernel

Reply via email to