Loading services/core/java/com/android/server/hdmi/ArcTerminationActionFromAvr.java +5 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,11 @@ public class ArcTerminationActionFromAvr extends HdmiCecFeatureAction { sendCommand(HdmiCecMessageBuilder.buildTerminateArc(getSourceAddress(), Constants.ADDR_TV), result -> { if (result != SendMessageResult.SUCCESS) { // If the physical connection is already off or TV does not handle // Terminate ARC, turn off ARC internally. if (result == SendMessageResult.NACK) { audioSystem().setArcStatus(false); } HdmiLogger.debug("Terminate ARC was not successfully sent."); finish(); } Loading services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceAudioSystem.java +9 −0 Original line number Diff line number Diff line Loading @@ -304,6 +304,15 @@ public class HdmiCecLocalDeviceAudioSystem extends HdmiCecLocalDeviceSource { } if (mService.getPortInfo(portId).getType() == HdmiPortInfo.PORT_OUTPUT) { mCecMessageCache.flushAll(); if (!connected) { if (isSystemAudioActivated()) { mTvSystemAudioModeSupport = null; checkSupportAndSetSystemAudioMode(false); } if (isArcEnabled()) { setArcStatus(false); } } } else if (!connected && mPortIdToTvInputs.get(portId) != null) { String tvInputId = mPortIdToTvInputs.get(portId); HdmiDeviceInfo info = mTvInputsToDeviceInfo.get(tvInputId); Loading Loading
services/core/java/com/android/server/hdmi/ArcTerminationActionFromAvr.java +5 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,11 @@ public class ArcTerminationActionFromAvr extends HdmiCecFeatureAction { sendCommand(HdmiCecMessageBuilder.buildTerminateArc(getSourceAddress(), Constants.ADDR_TV), result -> { if (result != SendMessageResult.SUCCESS) { // If the physical connection is already off or TV does not handle // Terminate ARC, turn off ARC internally. if (result == SendMessageResult.NACK) { audioSystem().setArcStatus(false); } HdmiLogger.debug("Terminate ARC was not successfully sent."); finish(); } Loading
services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceAudioSystem.java +9 −0 Original line number Diff line number Diff line Loading @@ -304,6 +304,15 @@ public class HdmiCecLocalDeviceAudioSystem extends HdmiCecLocalDeviceSource { } if (mService.getPortInfo(portId).getType() == HdmiPortInfo.PORT_OUTPUT) { mCecMessageCache.flushAll(); if (!connected) { if (isSystemAudioActivated()) { mTvSystemAudioModeSupport = null; checkSupportAndSetSystemAudioMode(false); } if (isArcEnabled()) { setArcStatus(false); } } } else if (!connected && mPortIdToTvInputs.get(portId) != null) { String tvInputId = mPortIdToTvInputs.get(portId); HdmiDeviceInfo info = mTvInputsToDeviceInfo.get(tvInputId); Loading