From: zyc Date: Tue, 14 Jun 2011 04:48:25 +0000 (-0700) Subject: "fb:reinit the vars when opening the fb1." X-Git-Tag: firefly_0821_release~10199 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=55b4e889d4e9e0b1dc75fcd3380090ed29689f3e;p=firefly-linux-kernel-4.4.55.git "fb:reinit the vars when opening the fb1." 1. 解决旋转情况下,预览过程中,按下power键休眠,唤醒时显示异常 2. 解决旋转情况下播放视频,切换上下曲时有时会花屏一下 --- 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;