diff options
| author | 2024-11-07 00:13:32 -0800 | |
|---|---|---|
| committer | 2024-11-07 10:57:56 +0000 | |
| commit | aba040083b4b3cd43c73eecdec56baec7bbbf88a (patch) | |
| tree | c4ec311d30d14a7b9a2ae68119e2d86ff02d2dc2 | |
| parent | 95f5091d51a955726e3b18b6ff48f6cf87782bfd (diff) | |
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
| -rw-r--r-- | services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java b/services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java index bf415a344f4c..7505c710f483 100644 --- a/services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java +++ b/services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java @@ -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; |