rk hdmi: fix hdmi win state err when suspend
authorzwl <zwl@rock-chips.com>
Wed, 14 May 2014 06:33:35 +0000 (14:33 +0800)
committerzwl <zwl@rock-chips.com>
Wed, 14 May 2014 06:34:03 +0000 (14:34 +0800)
drivers/video/rockchip/hdmi/rk_hdmi_task.c

index 135688f8ecbfaf2211b9b6dbe937cebdd5194944..fecf87d254566e9d6f466b5de552a7d7a1dc71e5 100755 (executable)
@@ -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;
                                }