32 files changed, 2617 insertions, 874 deletions
diff --git a/hwc2/common/devices/PrimaryDevice.cpp b/hwc2/common/devices/PrimaryDevice.cpp index eca8957..11dfad8 100644 --- a/hwc2/common/devices/PrimaryDevice.cpp +++ b/hwc2/common/devices/PrimaryDevice.cpp @@ -70,21 +70,12 @@ void PrimaryDevice::hotplugEventListener(void *data, bool status) void PrimaryDevice::hotplugListener(bool connected) { CTRACE(); - ETRACE("hotpug event: %d", connected); updateHotplugState(connected); - // update display configs - if (connected) { - if (!updateDisplayConfigs()) { - ETRACE("failed to update display config"); - return; - } - if (getDisplayId() == HWC_DISPLAY_EXTERNAL) { - getDevice().hotplug(getDisplayId(), connected); - } - } + // update display configs + onHotplug(getDisplayId(), connected); } } // namespace amlogic |