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

Commit b84b0870 authored by Winni Chang's avatar Winni Chang Committed by Android (Google) Code Review
Browse files

Merge "Refactor RequestSadAction" into main

parents 0afe7836 26861ca7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -60,6 +60,12 @@ final class SetArcTransmissionStateAction extends HdmiCecFeatureAction {
    boolean start() {
        // Seq #37.
        if (mEnabled) {
            // Avoid triggering duplicate RequestSadAction events.
            // This could lead to unexpected responses from the AVR and cause the TV to receive data
            // out of order. The SAD report does not provide information about the order of events.
            if ((tv().hasAction(RequestSadAction.class))) {
                return true;
            }
            // Request SADs before enabling ARC
            RequestSadAction action = new RequestSadAction(
                    localDevice(), Constants.ADDR_AUDIO_SYSTEM,