Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea1eb3e2 authored by Marvin Ramin's avatar Marvin Ramin
Browse files

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
parent 3a9c1fcf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }