Merge "CEC: Defer CEC actions until logical address is available" into nyc-dev
This commit is contained in:
@@ -650,7 +650,7 @@ abstract class HdmiCecLocalDevice {
|
|||||||
void addAndStartAction(final HdmiCecFeatureAction action) {
|
void addAndStartAction(final HdmiCecFeatureAction action) {
|
||||||
assertRunOnServiceThread();
|
assertRunOnServiceThread();
|
||||||
mActions.add(action);
|
mActions.add(action);
|
||||||
if (mService.isPowerStandby()) {
|
if (mService.isPowerStandby() || !mService.isAddressAllocated()) {
|
||||||
Slog.i(TAG, "Not ready to start action. Queued for deferred start:" + action);
|
Slog.i(TAG, "Not ready to start action. Queued for deferred start:" + action);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
// Initialize HDMI port information. Combine the information from CEC and MHL HAL and
|
||||||
// keep them in one place.
|
// keep them in one place.
|
||||||
@ServiceThreadOnly
|
@ServiceThreadOnly
|
||||||
|
|||||||
Reference in New Issue
Block a user