HDMI: Fix comment about eARC disabling and pending ARC.

This comment was replaced when a new patchset was uploaded in ag/23154375.

Bug: 278662425
Test: -
Change-Id: Ibb883459cbf99cd46f9bee30e6a2a9085cab4515
This commit is contained in:
Paul Colța
2023-05-24 07:20:03 +00:00
parent af4534f615
commit 7602dd5498

View File

@@ -4725,13 +4725,11 @@ public class HdmiControlService extends SystemService {
Slog.w(TAG, "Tried to update eARC status on a port that doesn't support eARC.");
return;
}
// If eARC is disabled, the local device is null. In this case, the HAL shouldn't have
// reported connection state changes, but even if it did, it won't take effect.
if (mEarcLocalDevice != null) {
mEarcLocalDevice.handleEarcStateChange(status);
} else if (status == HDMI_EARC_STATUS_ARC_PENDING) {
// If the local device is null we notify the Audio Service that eARC connection
// is disabled.
// If eARC is disabled, the local device is null. This is why we notify
// AudioService here that the eARC connection is terminated.
notifyEarcStatusToAudioService(false, new ArrayList<>());
startArcAction(true, null);
}