Merge "sdm: power off external display during GVM LPM"
diff --git a/sdm/libs/core/Android.mk b/sdm/libs/core/Android.mk
index f8a58d1..c934de0 100644
--- a/sdm/libs/core/Android.mk
+++ b/sdm/libs/core/Android.mk
@@ -22,6 +22,10 @@
LOCAL_CFLAGS += -DPP_DRM_ENABLE
endif
+ifeq ($(ENABLE_HYP),true)
+ LOCAL_CFLAGS += -DHYPERVISOR
+endif
+
LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
LOCAL_SRC_FILES := core_interface.cpp \
core_impl.cpp \
diff --git a/sdm/libs/core/drm/hw_tv_drm.cpp b/sdm/libs/core/drm/hw_tv_drm.cpp
index 4b2dc89..94a0810 100644
--- a/sdm/libs/core/drm/hw_tv_drm.cpp
+++ b/sdm/libs/core/drm/hw_tv_drm.cpp
@@ -190,6 +190,10 @@
return kErrorNone;
}
+#ifdef HYPERVISOR
+ teardown = true;
+#endif
+
if (teardown) {
// LP connecter prop N/A for External
drm_atomic_intf_->Perform(DRMOps::CRTC_SET_ACTIVE, token_.crtc_id, 0);