-rw-r--r-- | hwc2/common/devices/PrimaryDevice.cpp | 40 | ||||
-rw-r--r-- | hwc2/common/observers/UeventObserver.cpp | 4 | ||||
-rw-r--r-- | hwc2/common/utils/Utils.cpp | 11 | ||||
-rw-r--r-- | hwc2/common/utils/Utils.h | 2 | ||||
-rw-r--r-- | hwc2/include/PrimaryDevice.h | 2 |
5 files changed, 23 insertions, 36 deletions
diff --git a/hwc2/common/utils/Utils.cpp b/hwc2/common/utils/Utils.cpp index 4bccd50..ce733b3 100644 --- a/hwc2/common/utils/Utils.cpp +++ b/hwc2/common/utils/Utils.cpp @@ -213,7 +213,7 @@ const char* Utils::getHdcpUeventEnvelope() const char* Utils::getModeChangeUeventEnvelope() { - return "change@/devices/virtual/amhdmitx/amhdmitx0/setmode"; + return "change@/devices/platform/vout/extcon/setmode"; } const char* Utils::getSwitchState0() @@ -226,6 +226,15 @@ const char* Utils::getSwitchState1() return "STATE=HDMI=1"; } +const char* Utils::getSwitchModeState0() +{ + return "STATE=ACA=0"; +} + +const char* Utils::getSwitchModeState1() +{ + return "STATE=ACA=1"; +} bool Utils::rectEmpty(hwc_rect_t& rect) { if ((rect.right - rect.left <= 0) ||(rect.bottom - rect.top <= 0)) |