From 55b4e889d4e9e0b1dc75fcd3380090ed29689f3e Mon Sep 17 00:00:00 2001 From: zyc Date: Mon, 13 Jun 2011 21:48:25 -0700 Subject: [PATCH] "fb:reinit the vars when opening the fb1." MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 1. 解决旋转情况下,预览过程中,按下power键休眠,唤醒时显示异常 2. 解决旋转情况下播放视频,切换上下曲时有时会花屏一下 --- drivers/video/rk29_fb.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 drivers/video/rk29_fb.c diff --git a/drivers/video/rk29_fb.c b/drivers/video/rk29_fb.c old mode 100644 new mode 100755 index 714dda637725..791b87b64da8 --- a/drivers/video/rk29_fb.c +++ b/drivers/video/rk29_fb.c @@ -1888,7 +1888,7 @@ static int fb1_set_par(struct fb_info *info) #if CONFIG_FB_ROTATE_VIDEO //need refresh ,zyc add - if(has_set_rotate == true) + if((has_set_rotate == true) && (last_yuv_phy[0] != 0) && (last_yuv_phy[1] != 0)) { u32 yuv_phy[2]; struct rk29_ipp_req ipp_req; @@ -1987,6 +1987,12 @@ int fb1_open(struct fb_info *info, int user) par->addr_seted = 0; inf->video_mode = 1; wq_condition2 = 1; +#if CONFIG_FB_ROTATE_VIDEO + //reinitialize the var when open,zyc + last_yuv_phy[0] = 0; + last_yuv_phy[1] = 0; + has_set_rotate = 0; +#endif if(par->refcount) { printk(">>>>>> fb1 has opened! \n"); return -EACCES; -- 2.34.1