rk hdmi: fix fb switch lead to hdmi no display

This commit is contained in:
hjc
2014-08-20 19:26:24 +08:00
parent a530dbb4a1
commit 8ca494ce3a

View File

@@ -81,8 +81,8 @@ void hdmi_sys_remove(struct hdmi *hdmi)
INIT_LIST_HEAD(&hdmi->edid.modelist);
hdmi->display = HDMI_DISABLE;
if (hdmi->set_vif)
hdmi->set_vif(hdmi, hdmi->lcdc->cur_screen, 0);
rk_fb_switch_screen(hdmi->lcdc->cur_screen, 0, hdmi->lcdc->id);
hdmi->set_vif(hdmi, hdmi->lcdc->screen1, 0);
rk_fb_switch_screen(hdmi->lcdc->screen1, 0, hdmi->lcdc->id);
kobject_uevent_env(&hdmi->ddev->dev->kobj, KOBJ_REMOVE, envp);
#ifdef CONFIG_SWITCH