Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 721b7021 authored by daren.liao's avatar daren.liao
Browse files

Disable ARC when physical address is incorrect

[Description]
When wrong PA is received, disable ARC in onNewAvrAdded
This is a special case for HEACT 5-15 Step 13~15

1) Turn 5V on, and connect ARC
2) Perform 11.1.17-5, the physical address of AVR becomes invalid
3) Make sure that ARC is disconnected

Bug: 157451815

[Test]
HEACT 5-15 Test PASS

Change-Id: I865438224142fa5dc36010da356ba3771f5a537c
parent 507764f6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -800,7 +800,9 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
        assertRunOnServiceThread();
        if (!mService.isPowerStandbyOrTransient()) {
            addAndStartAction(new SystemAudioAutoInitiationAction(this, avr.getLogicalAddress()));
            if (isConnected(avr.getPortId()) && isArcFeatureEnabled(avr.getPortId())
            if (!isDirectConnectAddress(avr.getPhysicalAddress())) {
                startArcAction(false);
            } else if (isConnected(avr.getPortId()) && isArcFeatureEnabled(avr.getPortId())
                    && !hasAction(SetArcTransmissionStateAction.class)) {
                startArcAction(true);
            }