From 1a31a08df66093fa38ad01aadffab8c68ab0b671 Mon Sep 17 00:00:00 2001 From: ddl Date: Fri, 7 Dec 2012 10:34:29 +0800 Subject: [PATCH] camera: fix CONFIG_SENSOR_01 memory alloc error and ov5640 preview framerate turn up to 30fps --- arch/arm/plat-rk/rk_camera.c | 2 +- drivers/media/video/ov5640.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-rk/rk_camera.c b/arch/arm/plat-rk/rk_camera.c index 0fbdd9326771..8c02cbec7855 100755 --- a/arch/arm/plat-rk/rk_camera.c +++ b/arch/arm/plat-rk/rk_camera.c @@ -65,7 +65,7 @@ #ifdef CONFIG_SENSOR_IIC_ADDR_01 #if (CONFIG_SENSOR_IIC_ADDR_01 != 0x00) -#define PMEM_SENSOR_FULL_RESOLUTION_01 CONS(CONFIG_SENSOR_02,_FULL_RESOLUTION) +#define PMEM_SENSOR_FULL_RESOLUTION_01 CONS(CONFIG_SENSOR_01,_FULL_RESOLUTION) #ifdef CONFIG_SENSOR_CIF_INDEX_01 #define SENSOR_CIF_BUSID_01 CONS(RK_CAM_PLATFORM_DEV_ID_,CONFIG_SENSOR_CIF_INDEX_01) diff --git a/drivers/media/video/ov5640.c b/drivers/media/video/ov5640.c index 8bdbac5314a7..122762f45a6e 100755 --- a/drivers/media/video/ov5640.c +++ b/drivers/media/video/ov5640.c @@ -204,7 +204,7 @@ static struct reginfo sensor_init_data[] = {0x3034, 0x1a}, {0x3035, 0x21}, {0x3036, 0x46}, - {0x3037, 0x13}, + {0x3037, 0x03}, {0x3108, 0x01}, {0x3630, 0x36}, {0x3631, 0x0e}, -- 2.34.1