Fix TV doesn't send <Active Source> on boot up

Bug: 262692976

Test: manually test by boot up TV

Change-Id: I03546984e808bb08c26094d501f0a134706b6cef
This commit is contained in:
daren.liao
2022-12-14 16:36:48 +08:00
parent 6cbc807a6f
commit f7f45bd652

View File

@@ -1232,7 +1232,8 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
void launchRoutingControl(boolean routingForBootup) {
assertRunOnServiceThread();
// Seq #24
if (getActivePortId() != Constants.INVALID_PORT_ID) {
if (getActivePortId() != Constants.INVALID_PORT_ID
&& getActivePortId() != Constants.CEC_SWITCH_HOME) {
if (!routingForBootup && !isProhibitMode()) {
int newPath = mService.portIdToPath(getActivePortId());
setActivePath(newPath);