Call setArcStatus(false) before standby

[Description]
DisableDevice is called before standby.
If clearDeviceInfoList() is called before <Terminate ARC> is received,
CEC can't get device info & portId of AVR
And thus enableAudioReturnChannel is not success.

Therefore, we call setArcStatus(false) earlier
before RequestArcTerminationAction and receives <Terminate ARC>

Note that we don't use SetArcTransmissionStateAction since it is not
safe to create too many Actions during standby process

Bug: 137344668
Test: OEM

Change-Id: Ic67b31ce7d9b1dc0c3c578f87fdd782fcc797d3e
(cherry picked from commit 5681bcd4ea6c9610aa931d8c536ca15c8753eae4)
This commit is contained in:
daren.liao
2020-05-19 14:15:00 +08:00
committed by Robin Lee
parent b1b131a595
commit 4fdd39bc41

View File

@@ -1666,6 +1666,7 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
if (avr == null) {
return;
}
setArcStatus(false);
// Seq #44.
removeAction(RequestArcInitiationAction.class);