update fb for video end
authorzyw <zyw@rock-chips.com>
Thu, 30 Dec 2010 04:23:07 +0000 (12:23 +0800)
committerzyw <zyw@rock-chips.com>
Thu, 30 Dec 2010 04:23:07 +0000 (12:23 +0800)
drivers/video/rk29_fb.c

index f8201598bfce64b9adde6ea6b84eebc267ad38eb..d38a7bdf09ab86dfbfddbe1370909cf11d50bdfd 100644 (file)
@@ -1591,6 +1591,7 @@ int fb1_release(struct fb_info *info, int user)
     if(par->refcount) {
         par->refcount--;
         inf->video_mode = 0;
+        par->par_seted = 0;
 
         win1_blank(FB_BLANK_POWERDOWN, info);
         // wait for lcdc stop access memory
@@ -1660,7 +1661,7 @@ static int fb1_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg)
                 }
 
                 local_irq_save(flags);
-               LcdMskReg(inf, SYS_CONFIG, m_W0_ENABLE, v_W0_ENABLE(1));
+               LcdMskReg(inf, SYS_CONFIG, m_W0_ENABLE, v_W0_ENABLE(par->par_seted));
                 par->mirror.y_offset = yuv_phy[0];
                 par->mirror.c_offset = yuv_phy[1];
                 local_irq_restore(flags);