Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment