am 2edc7f24: am ddf679ec: am 5c0d3862: Merge "Make the playback device pass CEC CTS." into lmp-dev

* commit '2edc7f24468e3b609c78cbfa767b83240f5b17f5':
  Make the playback device pass CEC CTS.
This commit is contained in:
Yuncheol Heo
2014-09-16 09:13:09 +00:00
committed by Android Git Automerger
2 changed files with 2 additions and 1 deletions

View File

@@ -121,7 +121,7 @@ final class HdmiCecLocalDevicePlayback extends HdmiCecLocalDevice {
void onHotplug(int portId, boolean connected) {
assertRunOnServiceThread();
mCecMessageCache.flushAll();
mIsActiveSource = false;
// We'll not clear mIsActiveSource on the hotplug event to pass CETC 11.2.2-2 ~ 3.
if (connected && mService.isPowerStandbyOrTransient()) {
mService.wakeUp();
}

View File

@@ -428,6 +428,7 @@ public final class HdmiControlService extends SystemService {
private void allocateLogicalAddress(final ArrayList<HdmiCecLocalDevice> allocatingDevices,
final int initiatedBy) {
assertRunOnServiceThread();
mCecController.clearLogicalAddress();
final ArrayList<HdmiCecLocalDevice> allocatedDevices = new ArrayList<>();
final int[] finished = new int[1];
for (final HdmiCecLocalDevice localDevice : allocatingDevices) {