Only attempt terminating ARC for audio devices

Fixes an issue introduced in ag/12629370 which inverted the condition
checking the logical address of the removed device.

Bug: 181095118
Test: atest + manual
Change-Id: I33ee58f45d6e366ce1793e76b2083f0aef2773a2
This commit is contained in:
Marvin Ramin
2021-02-24 10:00:43 +01:00
parent 3a9c1fcf46
commit ea1eb3e2a4

View File

@@ -259,7 +259,7 @@ final class HotplugDetectionAction extends HdmiCecFeatureAction {
}
private void mayDisableSystemAudioAndARC(int address) {
if (HdmiUtils.isEligibleAddressForDevice(HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM, address)) {
if (!HdmiUtils.isEligibleAddressForDevice(HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM, address)) {
return;
}