rk hdmi: fix hdmi win state err when suspend

This commit is contained in:
zwl
2014-05-14 14:33:35 +08:00
parent 70edad0ad8
commit 55fe2104bb

View File

@@ -119,10 +119,11 @@ static int hdmi_process_command(struct hdmi *hdmi)
mutex_lock(&hdmi->enable_mutex);
if(!hdmi->enable || hdmi->suspend)
{
if(hdmi->hotplug == HDMI_HPD_ACTIVED)
if(hdmi->hotplug != HDMI_HPD_REMOVED) {
hdmi->hotplug = HDMI_HPD_REMOVED;
hdmi_sys_remove(hdmi);
}
hdmi->state = HDMI_SLEEP;
hdmi->hotplug = HDMI_HPD_REMOVED;
hdmi->remove(hdmi);
state = HDMI_SLEEP;
}