From a28271d08f7c7f36b9c9351f9bbfd498213615af Mon Sep 17 00:00:00 2001 From: svenate Date: Tue, 10 May 2022 06:38:17 +0530 Subject: [PATCH] Revert "Sync graphics mixin update" This reverts commit 61fdc4e286399d2caeb8817c3a8386e847fa74ef. --- daemon/Android.mk | 3 ++- daemon/portmanager.cpp | 2 -- daemon/portmanager.h | 7 ------- daemon/portmanager_android.cpp | 17 +---------------- 4 files changed, 3 insertions(+), 26 deletions(-) mode change 100755 => 100644 daemon/Android.mk mode change 100755 => 100644 daemon/portmanager.cpp mode change 100755 => 100644 daemon/portmanager.h mode change 100755 => 100644 daemon/portmanager_android.cpp diff --git a/daemon/Android.mk b/daemon/Android.mk old mode 100755 new mode 100644 index 0bcc0ac..563fb66 --- a/daemon/Android.mk +++ b/daemon/Android.mk @@ -60,7 +60,8 @@ LOCAL_SHARED_LIBRARIES := \ liblog \ libcrypto \ libdrm \ - libssl + libssl \ + libhwcservice LOCAL_STATIC_LIBRARIES := \ libhdcpcommon \ diff --git a/daemon/portmanager.cpp b/daemon/portmanager.cpp old mode 100755 new mode 100644 index 1234af6..4cda285 --- a/daemon/portmanager.cpp +++ b/daemon/portmanager.cpp @@ -1436,7 +1436,6 @@ int32_t PortManagerHWComposer::SetPortProperty( android::ProcessState::initWithDriver(BINDER_IPC); -#ifdef USES_IA_HWCOMPOSER // Connect to HWC service HWCSHANDLE hwcs = HwcService_Connect(); if (nullptr == hwcs) @@ -1483,7 +1482,6 @@ int32_t PortManagerHWComposer::SetPortProperty( } HwcService_Disconnect(hwcs); -#endif if (SUCCESS != ret) { diff --git a/daemon/portmanager.h b/daemon/portmanager.h old mode 100755 new mode 100644 index 8160111..9b739e8 --- a/daemon/portmanager.h +++ b/daemon/portmanager.h @@ -36,18 +36,11 @@ #include "port.h" #ifdef ANDROID - -#ifdef USES_IA_HWCOMPOSER #include -#endif - #include #include #include - -#ifdef USES_IA_HWCOMPOSER #include -#endif #define BINDER_IPC "/dev/vndbinder" #endif diff --git a/daemon/portmanager_android.cpp b/daemon/portmanager_android.cpp old mode 100755 new mode 100644 index d4fa2a5..ed0d69e --- a/daemon/portmanager_android.cpp +++ b/daemon/portmanager_android.cpp @@ -31,17 +31,11 @@ #include "portmanager.h" #include "portmanager_android.h" -#ifdef USES_IA_HWCOMPOSER #include -#endif - #include #include #include - -#ifdef USES_IA_HWCOMPOSER #include -#endif #include "xf86drm.h" #include "xf86drmMode.h" @@ -128,7 +122,6 @@ int32_t setPortProperty_hwcservice(int32_t m_DrmFd, android::ProcessState::initWithDriver("/dev/vndbinder"); -#ifdef USES_IA_HWCOMPOSER // Connect to HWC service HWCSHANDLE hwcs = HwcService_Connect(); if (hwcs == NULL) { @@ -145,15 +138,12 @@ int32_t setPortProperty_hwcservice(int32_t m_DrmFd, hwcs, drmId); } -#endif //Enable CP and SendSRM if (numRetry > 1) { for (uint32_t i = 0; i < numRetry; ++i) { - -#ifdef USES_IA_HWCOMPOSER if(propId == drmObject->GetPropertyId(CONTENT_PROTECTION)) { HDCP_ASSERTMESSAGE("Attempting HDCP Enable"); @@ -176,7 +166,6 @@ int32_t setPortProperty_hwcservice(int32_t m_DrmFd, hwcs = NULL; ret = EINVAL; } -#endif if(SUCCESS == ret) { // Invalid the cpValue/cpType @@ -206,17 +195,13 @@ int32_t setPortProperty_hwcservice(int32_t m_DrmFd, if (SUCCESS != ret) { -#ifdef USES_IA_HWCOMPOSER HwcService_Disconnect(hwcs); -#endif - HDCP_ASSERTMESSAGE("Failed to Enable HDCP"); + HDCP_ASSERTMESSAGE("Failed to Enable HDCP"); HDCP_FUNCTION_EXIT(EBUSY); return EBUSY; } -#ifdef USES_IA_HWCOMPOSER HwcService_Disconnect(hwcs); -#endif HDCP_FUNCTION_EXIT(SUCCESS); return SUCCESS; } //setPortProperty_hwcservice