Merge "CEC: Defer CEC actions until logical address is available" into nyc-dev am: 4853d65a60

am: 3522ec79ca

* commit '3522ec79cac6e070be562d656581949b8df50fcd':
  CEC: Defer CEC actions until logical address is available

Change-Id: I03ccc98bc36732bb9d7bff7b96fd4d2464967f6b
This commit is contained in:
Donghyun Cho
2016-05-16 04:58:18 +00:00
committed by android-build-merger
2 changed files with 5 additions and 1 deletions

View File

@@ -650,7 +650,7 @@ abstract class HdmiCecLocalDevice {
void addAndStartAction(final HdmiCecFeatureAction action) {
assertRunOnServiceThread();
mActions.add(action);
if (mService.isPowerStandby()) {
if (mService.isPowerStandby() || !mService.isAddressAllocated()) {
Slog.i(TAG, "Not ready to start action. Queued for deferred start:" + action);
return;
}

View File

@@ -641,6 +641,10 @@ public final class HdmiControlService extends SystemService {
}
}
boolean isAddressAllocated() {
return mAddressAllocated;
}
// Initialize HDMI port information. Combine the information from CEC and MHL HAL and
// keep them in one place.
@ServiceThreadOnly