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

Commit 3433911e authored by Hannah.Hsu's avatar Hannah.Hsu
Browse files

Correct portIdToPath for TV

There is no portInfo for TV itself (Physical address 0.0.0.0 with
port 0) and would cause system get invalid path for command <Routing
Change>.

Bug: b/309904148

Change-Id: Icd7099e8afbc588eee8e7b27fb6fcfb914d7d032
parent 92e95adb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -899,6 +899,9 @@ public class HdmiCecNetwork {
     * port id.
     */
    int portIdToPath(int portId) {
        if (portId == Constants.CEC_SWITCH_HOME) {
            return getPhysicalAddress();
        }
        HdmiPortInfo portInfo = getPortInfo(portId);
        if (portInfo == null) {
            Slog.e(TAG, "Cannot find the port info: " + portId);