diff options
| author | 2023-01-10 15:48:32 +0100 | |
|---|---|---|
| committer | 2023-01-10 15:48:32 +0100 | |
| commit | aafb4b60de55b4fef872dcf9fbb35ab658c19c84 (patch) | |
| tree | 989013a0a8243d8953434c0c23c33e1b105129ca | |
| parent | 7d3c37defc82a3b896755902a6887bf6bf08f5f8 (diff) | |
Add warning log
ARC will be disabled in AudioService regardless of whether ARC was
disabled in the connected Audio System succesfully or not. Still, having
a log here can help with debugging.
Test: none
Bug: 262573690
Change-Id: I756d622f2dd02f2a33014ee896b1644242030c1a
| -rw-r--r-- | services/core/java/com/android/server/hdmi/HdmiControlService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/hdmi/HdmiControlService.java b/services/core/java/com/android/server/hdmi/HdmiControlService.java index f66f8ea3ba77..83fa97605a40 100644 --- a/services/core/java/com/android/server/hdmi/HdmiControlService.java +++ b/services/core/java/com/android/server/hdmi/HdmiControlService.java @@ -4524,6 +4524,11 @@ public class HdmiControlService extends SystemService { startArcAction(false, new IHdmiControlCallback.Stub() { @Override public void onComplete(int result) throws RemoteException { + if (result != HdmiControlManager.RESULT_SUCCESS) { + Slog.w(TAG, + "ARC termination before enabling eARC in the HAL failed with " + + "result: " + result); + } // Independently of the result (i.e. independently of whether the ARC RX device // responded with <Terminate ARC> or not), we always end up terminating ARC in // the HAL. As soon as we do that, we can enable eARC in the HAL. |