rk fb: set scaler after lcdc timing modification in one lcdc dual display mode
authoryxj <yxj@rock-chips.com>
Sat, 29 Jun 2013 03:57:07 +0000 (11:57 +0800)
committeryxj <yxj@rock-chips.com>
Sat, 29 Jun 2013 03:57:07 +0000 (11:57 +0800)
       this is to mach jettb vif sync requirement

drivers/video/rockchip/rk_fb.c

index e9e6c85c854c707e6fbe4698414ae77cabacaba8..b3538c1c557e24bc63fec957de1c62792f0e6411 100644 (file)
@@ -917,10 +917,7 @@ int rk_fb_switch_screen(rk_screen *screen ,int enable ,int lcdc_id)
                                dev_drv->screen0->sscreen_get(dev_drv->screen0,
                                        dev_drv->cur_screen->hdmi_resolution);
                        }
-                       if(dev_drv->screen0->sscreen_set)
-                       {
-                               dev_drv->screen0->sscreen_set(dev_drv->screen0,enable);
-                       }
+                       
                        
                }
                else
@@ -930,10 +927,7 @@ int rk_fb_switch_screen(rk_screen *screen ,int enable ,int lcdc_id)
                        dev_drv->cur_screen = dev_drv->screen0;
                        dev_drv->screen_ctr_info->set_screen_info(dev_drv->cur_screen,
                        dev_drv->screen_ctr_info->lcd_info);
-                       if(dev_drv->screen0->sscreen_set)
-                       {
-                               dev_drv->screen0->sscreen_set(dev_drv->screen0,0);
-                       }
+                       
                        
                }
        }
@@ -1006,6 +1000,13 @@ int rk_fb_switch_screen(rk_screen *screen ,int enable ,int lcdc_id)
                info->fbops->fb_pan_display(hdmi_var,info);
        #endif 
        info->fbops->fb_ioctl(info,RK_FBIOSET_CONFIG_DONE,0);
+       if(dev_drv->screen1) //for one lcdc use  scaler for dual dispaly
+       {
+               if(dev_drv->screen0->sscreen_set)
+               {
+                       dev_drv->screen0->sscreen_set(dev_drv->screen0,enable);
+               }
+       }
 #if defined(CONFIG_NO_DUAL_DISP)  //close backlight for device whic do not support dual display
        if(!enable)
                rk29_backlight_set(1);