aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLingkai Dong <lingkai.dong@arm.com>2023-10-06 15:45:45 +0100
committerLingkai Dong <lingkai.dong@arm.com>2024-01-30 09:49:42 +0000
commit63ed8076ad70cb212fec97dd70043291ad4ff19d (patch)
treee6fabbed2867904093d8a3c488986dc401ef6589
parent2a93e4c8826f96ab2092f848e4346a92250a6923 (diff)
downloaddrm_hwcomposer-63ed8076ad70cb212fec97dd70043291ad4ff19d.tar.gz
drm_hwcomposer: Treat unknown connector as internal display
The code determines if a display is internal or external based on the display connector type, and at least one internal display must exist which is used as the primary display. Because the FVP Base RevC does not model any connector hardware, the reported connector type is none/ unknown, so we need to treat unknown as an internal connector. Change-Id: Ifa603f903d74ccad6c7e9da13042994a5fdffe32 Signed-off-by: Lingkai Dong <lingkai.dong@arm.com>
-rw-r--r--drm/DrmConnector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drm/DrmConnector.cpp b/drm/DrmConnector.cpp
index f625563..b396487 100644
--- a/drm/DrmConnector.cpp
+++ b/drm/DrmConnector.cpp
@@ -114,7 +114,8 @@ auto DrmConnector::GetEdidBlob() -> DrmModePropertyBlobUnique {
bool DrmConnector::IsInternal() const {
auto type = connector_->connector_type;
- return type == DRM_MODE_CONNECTOR_LVDS || type == DRM_MODE_CONNECTOR_eDP ||
+ return type == DRM_MODE_CONNECTOR_Unknown ||
+ type == DRM_MODE_CONNECTOR_LVDS || type == DRM_MODE_CONNECTOR_eDP ||
type == DRM_MODE_CONNECTOR_DSI || type == DRM_MODE_CONNECTOR_VIRTUAL ||
type == DRM_MODE_CONNECTOR_DPI || type == DRM_MODE_CONNECTOR_SPI;
}