summaryrefslogtreecommitdiff
authorsky zhou <sky.zhou@amlogic.com>2020-01-02 07:54:05 (GMT)
committer sky zhou <sky.zhou@amlogic.com>2020-05-21 11:37:59 (GMT)
commitd0375fe145b5bda80ff866b2f5049fdd7db1a597 (patch)
tree2b57b69cd45fafb4cef5ae3d337c32d71b1d2bbf
parent98cda9b52c67fce7af1f1b48269c1cf5cc54fa19 (diff)
downloadhwcomposer-d0375fe145b5bda80ff866b2f5049fdd7db1a597.zip
hwcomposer-d0375fe145b5bda80ff866b2f5049fdd7db1a597.tar.gz
hwcomposer-d0375fe145b5bda80ff866b2f5049fdd7db1a597.tar.bz2
HWC: update hdmi connect status when plugout. [1/1]
PD#SWPL-19234 Problem: cvbs display black screen. Solution: update hdmi connector status when plugout, or display config is not right. Verify: verify on franklin. Change-Id: I0f9739ece2f20a6f63607439b37dd83e8447a283 Signed-off-by: sky zhou <sky.zhou@amlogic.com>
Diffstat
-rw-r--r--common/hwc/FixedDisplayPipe.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/hwc/FixedDisplayPipe.cpp b/common/hwc/FixedDisplayPipe.cpp
index 018409e..55527c1 100644
--- a/common/hwc/FixedDisplayPipe.cpp
+++ b/common/hwc/FixedDisplayPipe.cpp
@@ -37,6 +37,11 @@ void FixedDisplayPipe::handleEvent(drm_display_event event, int val) {
targetConnector = connected ?
DRM_MODE_CONNECTOR_HDMI : DRM_MODE_CONNECTOR_CVBS;
+ /*update current connector status, now getpipecfg() need
+ * read connector status to decide connector.
+ */
+ statIt.second->modeConnector->update();
+
MESON_LOGD("handleEvent DRM_EVENT_HDMITX_HOTPLUG %d VS %d",
pipe->cfg.hwcConnectorType, targetConnector);
if (pipe->cfg.hwcConnectorType != targetConnector) {