From d661a56fb4b1e2f25c34c8d7f714b0c72fe99f7b Mon Sep 17 00:00:00 2001 From: lzg Date: Wed, 10 Aug 2011 18:04:29 +0800 Subject: [PATCH] lzg :fix invalidate frame data after capture add colour effect ---solarize --- drivers/media/video/mt9t111.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/media/video/mt9t111.c b/drivers/media/video/mt9t111.c index 845e27c0a9f3..ec85f5d399cf 100644 --- a/drivers/media/video/mt9t111.c +++ b/drivers/media/video/mt9t111.c @@ -5680,7 +5680,13 @@ static struct reginfo sensor_Effect_Green[] = static struct reginfo sensor_Effect_Solarize[] = { - + {0x098E, 0xE883, WORD_LEN, 0}, // MCU_ADDRESS [PRI_A_CONFIG_SYSCTRL_SELECT_FX] + {0x0990, 0x0004, WORD_LEN, 0}, // MCU_DATA_0 + {0x098E, 0xEC83, WORD_LEN, 0}, // MCU_ADDRESS [PRI_B_CONFIG_SYSCTRL_SELECT_FX] + {0x0990, 0x0004, WORD_LEN, 0}, // MCU_DATA_0 + + {0x098E, 0x8400, WORD_LEN, 0}, // MCU_ADDRESS [SEQ_CMD] + {0x0990, 0x0006, WORD_LEN, 0}, // MCU_DATA_0 {SEQUENCE_END, 0x00} }; @@ -7253,6 +7259,8 @@ static int sensor_s_fmt(struct v4l2_subdev *sd, struct v4l2_format *f) SENSOR_TR("%s Capture 2 Preview failed !!\n", SENSOR_NAME_STRING()); goto sensor_s_fmt_end; } + + mdelay(200); //delay microseconds to forbid invalidate data SENSOR_TR("%s Capture 2 Preview success\n", SENSOR_NAME_STRING()); -- 2.34.1