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

Commit aa57b004 authored by Amy's avatar Amy Committed by shubang
Browse files

Fix routing logic on handling routing change/info.

ag/5032150

Used the wrong methods for switching.

Test: local test.
Change-Id: I08055c7eb746c562f73b607049de5581242b4790
parent 79b54e92
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -719,7 +719,7 @@ public class HdmiCecLocalDeviceAudioSystem extends HdmiCecLocalDeviceSource {
        }

        int routingInformationPath =
                getActivePathOnSwitchFromActivePortId(mService.getPhysicalAddress());
                getActivePathOnSwitchFromActivePortId(getLocalActivePort());
        // If current device is already the leaf of the whole HDMI system, will do nothing.
        if (routingInformationPath == mService.getPhysicalAddress()) {
            HdmiLogger.debug("Current device can't assign valid physical address"
@@ -730,6 +730,6 @@ public class HdmiCecLocalDeviceAudioSystem extends HdmiCecLocalDeviceSource {
        // Otherwise will switch to the current active port and broadcast routing information.
        mService.sendCecCommand(HdmiCecMessageBuilder.buildRoutingInformation(
                mAddress, routingInformationPath));
        routeToInputFromPortId(getActivePortId());
        routeToInputFromPortId(getLocalActivePort());
    }
}