hwc2: Modify the Config Count
CRs-Fixed: 2072496
Change-Id: Ia742b130ca30a32bdbf992d87dcf3bf137ca5f9c
diff --git a/libdisplayconfig/DisplayConfig.cpp b/libdisplayconfig/DisplayConfig.cpp
index c55715b..29fcc94 100644
--- a/libdisplayconfig/DisplayConfig.cpp
+++ b/libdisplayconfig/DisplayConfig.cpp
@@ -170,7 +170,7 @@
}
int count = 0;
- intf->getActiveConfig(MapDisplayType(dpy),
+ intf->getConfigCount(MapDisplayType(dpy),
[&](const auto &tmpError, const auto &tmpCount) {
if (tmpError) {
return;
diff --git a/sdm/libs/hwc2/hwc_session_services.cpp b/sdm/libs/hwc2/hwc_session_services.cpp
index 4b5374f..b904933 100644
--- a/sdm/libs/hwc2/hwc_session_services.cpp
+++ b/sdm/libs/hwc2/hwc_session_services.cpp
@@ -170,7 +170,7 @@
Return<void> HWCSession::getConfigCount(IDisplayConfig::DisplayType dpy,
getConfigCount_cb _hidl_cb) {
uint32_t count = 0;
- int32_t error = GetActiveConfigIndex(MapDisplayType(dpy), &count);
+ int32_t error = GetConfigCount(MapDisplayType(dpy), &count);
_hidl_cb(error, count);