rkfb: support dual display use rk610 as scaler
authoryxj <yxj@rock-chips.com>
Mon, 10 Sep 2012 06:41:35 +0000 (14:41 +0800)
committeryxj <yxj@rock-chips.com>
Mon, 10 Sep 2012 07:38:59 +0000 (15:38 +0800)
drivers/video/rockchip/rk_fb.c

index 6a428b3a286623c3c7be7a40b6e613055e5dc070..c192a8e4d7770766ec29f444ff0bfa17b43a02e3 100644 (file)
@@ -658,7 +658,15 @@ int rk_fb_switch_screen(rk_screen *screen ,int enable ,int lcdc_id)
                        dev_drv->screen1->screen_id = 1;
                        dev_drv->screen0->lcdc_id = 1; //connect screen0 to output interface 1
                        dev_drv->cur_screen = dev_drv->screen1;
-                       dev_drv->screen0->sscreen_get(dev_drv->screen0,dev_drv->cur_screen->hdmi_resolution);
+                       if(dev_drv->screen0->sscreen_get)
+                       {
+                               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