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

Commit aba04008 authored by Paul Colta's avatar Paul Colta
Browse files

HDMI: On <Report PA> from current path send <Set Stream Path>

This is an improvement for a previous patch - ag/30085389
This patch checks correctly if new path is equal to active path to send
the expected message.

Bug: 377428559
Test: atest com.android.server.hdmi
Flag: EXEMPT bugfix
Change-Id: Ie27088610bdb0caf4210076a522c077b7e405634
parent 95f5091d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -646,9 +646,9 @@ public class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
        int address = message.getSource();
        int type = message.getParams()[2];

        if (!ActiveSource.of(address, path).equals(getActiveSource())) {
            HdmiLogger.debug("Check if a new device is connected to the active path");
            handleNewDeviceAtTheTailOfActivePath(path);
        if (getActiveSource().logicalAddress != address && getActivePath() == path) {
            HdmiLogger.debug("New logical address detected on the current active path.");
            startRoutingControl(path, path, null);
        }
        startNewDeviceAction(ActiveSource.of(address, path), type);
        return Constants.HANDLED;