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

Bug 7832 - OV5640 camera sensor does not enter power saving mode

Tested on 10" tablet, the hw power-down is working.
(the previous patch-0.942 is a workaround by using sw power-down for
sleep mode)

Signed-off-by: Yong He <yong.m...@intel.com>
Index: linux-2.6.37/drivers/staging/mrstci/mrstov5640/mrstov5640.c
===================================================================
--- linux-2.6.37/drivers/staging/mrstci/mrstov5640/mrstov5640.c        
(revision 134)
+++ linux-2.6.37/drivers/staging/mrstci/mrstov5640/mrstov5640.c     (revision 
135)
@@ -50,7 +50,7 @@
#include "ci_sensor_common.h"
#include "ov5640.h"
-#define DRIVER_VERSION "0.959"
+#define DRIVER_VERSION "0.960"
 #define GPIO_FLASH 45
static int ov5640_flash=0;
@@ -569,6 +569,7 @@
       ov5640_s_stream(sd , 0);
       spin_lock_irqsave(&ov5640_status.state_lock, flags);
       ov5640_status.power = OV5640_POWER_OFF;
+       ov5640_status.fw_inited = OV5640_FW_RESET;
        if (ov5640_status.reg_inited == OV5640_REG_INITED) {
                struct i2c_client *c = v4l2_get_subdevdata(sd);
@@ -584,6 +585,8 @@
       ov5640_status.preview.shutter16 = 0x200;
       ov5640_status.preview.gain16 = 0x10;
+       gpio_set_value(GPIO_STDBY_PIN, 1);
+
       printk(KERN_INFO "PM: ov5640 standby called\n");
}


Best Regards,

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

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

Reply via email to