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

Commit 238f64fc authored by Amy's avatar Amy Committed by shubang
Browse files

Use portid to physical address mapping to get correct port address.

ag/5662604

Note that framework caculated the port address from port index before.
But it's not correct any more after we changed port index to portid.

Test: manual
Bug: 120248694
Change-Id: I4074a924d548695cadb29956e2c3e416a27d86ec
parent dbed4e52
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1054,8 +1054,7 @@ public class HdmiCecLocalDeviceAudioSystem extends HdmiCecLocalDeviceSource {
            return;
        }

        int routingInformationPath =
                getActivePathOnSwitchFromActivePortId(getRoutingPort());
        int routingInformationPath = mService.portIdToPath(getRoutingPort());
        // 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"