Ver Fonte

touch: Enabling Touch-to-Wake when AOD off

Enablement of Touch to Wake when contextual mode is off.

Change-Id: I94df963268daae4c50798c43fcb7c151bb2b0186
Signed-off-by: Sachin Kumar Garg <[email protected]>
Sachin Kumar Garg há 2 anos atrás
pai
commit
36097dc556
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      pt/pt_core.c

+ 5 - 2
pt/pt_core.c

@@ -12472,8 +12472,11 @@ static int drm_notifier_callback(struct notifier_block *self,
 				pt_debug(cd->dev, DL_INFO, "%s: Resume notified!\n", __func__);
 			}
 		}
-	} else if (*blank == DRM_PANEL_BLANK_LP) {
-		pt_debug(cd->dev, DL_INFO, "%s: LOWPOWER!\n", __func__);
+	} else if (*blank == DRM_PANEL_BLANK_LP || *blank == DRM_PANEL_BLANK_POWERDOWN) {
+		if (*blank == DRM_PANEL_BLANK_LP)
+			pt_debug(cd->dev, DL_INFO, "%s: LOWPOWER!\n", __func__);
+		else
+			pt_debug(cd->dev, DL_INFO, "%s: POWERDOWN!\n", __func__);
 		if (event == DRM_PANEL_EARLY_EVENT_BLANK) {
 			if (cd->fb_state != FB_OFF) {
 #if defined(CONFIG_PM_SLEEP)