Revert fix for b/17673317 which causes HDCP issues.
Bug: 17967386
Change-Id: I63857e6cc20aee4ff6b67a502c41490f4cb1f98d
diff --git a/common/devices/ExternalDevice.cpp b/common/devices/ExternalDevice.cpp
index a52c59a..2430c15 100755
--- a/common/devices/ExternalDevice.cpp
+++ b/common/devices/ExternalDevice.cpp
@@ -242,10 +242,18 @@
if (mConnected == false) {
mHotplugEventPending = false;
mHdcpControl->stopHdcp();
+ mHwc.hotplug(mType, mConnected);
} else {
- mHdcpControl->startHdcp();
+ DLOGTRACE("start HDCP asynchronously...");
+ // delay sending hotplug event till HDCP is authenticated.
+ mHotplugEventPending = true;
+ ret = mHdcpControl->startHdcpAsync(HdcpLinkStatusListener, this);
+ if (ret == false) {
+ ELOGTRACE("failed to start HDCP");
+ mHotplugEventPending = false;
+ mHwc.hotplug(mType, mConnected);
+ }
}
- mHwc.hotplug(mType, mConnected);
mActiveDisplayConfig = 0;
}