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

Commit c1513687 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "HDMI: Disable SAM only if AVR doesn't ACK <UCP> message" into main

parents 7e1f38a7 5f75329d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -158,9 +158,11 @@ final class SendKeyAction extends HdmiCecFeatureAction {
                mTargetAddress, cecKeycodeAndParams), new SendMessageCallback() {
                @Override
                public void onSendCompleted(int error) {
                    if (error != SendMessageResult.SUCCESS) {
                    // Disable System Audio Mode, if the AVR doesn't acknowledge
                    // a <User Control Pressed> message.
                    if (error == SendMessageResult.NACK) {
                        HdmiLogger.debug(
                            "AVR did not respond to <User Control Pressed>");
                            "AVR did not acknowledge <User Control Pressed>");
                        localDevice().mService.setSystemAudioActivated(false);
                    }
                }