summaryrefslogtreecommitdiff
path: root/libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp')
-rw-r--r--libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp b/libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp
index 62e6f16..8b13742 100644
--- a/libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp
+++ b/libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp
@@ -32,6 +32,7 @@
#include "ExynosHWCHelper.h"
using namespace std::chrono_literals;
+using namespace SOC_VERSION;
constexpr uint32_t MAX_PLANE_NUM = 3;
constexpr uint32_t CBCR_INDEX = 1;
@@ -1347,11 +1348,11 @@ int32_t ExynosDisplayDrmInterface::updateHdrCapabilities()
int ExynosDisplayDrmInterface::getDeconChannel(ExynosMPP *otfMPP)
{
- int32_t channelNum = sizeof(IDMA_CHANNEL_MAP)/sizeof(dpp_channel_map_t);
+ int32_t channelNum = sizeof(idma_channel_map)/sizeof(dpp_channel_map_t);
for (int i = 0; i < channelNum; i++) {
- if((IDMA_CHANNEL_MAP[i].type == otfMPP->mPhysicalType) &&
- (IDMA_CHANNEL_MAP[i].index == otfMPP->mPhysicalIndex))
- return IDMA_CHANNEL_MAP[i].channel;
+ if((idma_channel_map[i].type == otfMPP->mPhysicalType) &&
+ (idma_channel_map[i].index == otfMPP->mPhysicalIndex))
+ return idma_channel_map[i].channel;
}
return -EINVAL;
}