From: hjc Date: Thu, 9 Apr 2015 10:06:02 +0000 (+0800) Subject: rk fb: when unplug hdmi,post fb to display X-Git-Tag: firefly_0821_release~4196 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=842e4d1fdcbfd84f1b55ed21c25f98f21781f242;p=firefly-linux-kernel-4.4.55.git rk fb: when unplug hdmi,post fb to display Signed-off-by: hjc --- diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index f16052c2f1ad..928032481aa3 100644 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -3193,8 +3193,9 @@ int rk_fb_switch_screen(struct rk_screen *screen, int enable, int lcdc_id) (dev_drv->cur_screen->mode.xres << 8) + (dev_drv->cur_screen->mode.yres << 20); mutex_lock(&dev_drv->win_config); - /*info->fbops->fb_set_par(info); - info->fbops->fb_pan_display(&info->var, info);*/ + info->var.yoffset = 0; + info->fbops->fb_set_par(info); + info->fbops->fb_pan_display(&info->var, info); mutex_unlock(&dev_drv->win_config); /*if (dev_drv->ops->dsp_black)