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

Commit a812ef3d authored by Paul Colța's avatar Paul Colța Committed by Android (Google) Code Review
Browse files

Merge "HDMI: Guard mEarcLocalDevice.mEarcStatus with mLock"

parents 39ac10e1 f7f99184
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -4714,8 +4714,10 @@ public class HdmiControlService extends SystemService {
    private int getEarcStatus() {
    private int getEarcStatus() {
        assertRunOnServiceThread();
        assertRunOnServiceThread();
        if (mEarcLocalDevice != null) {
        if (mEarcLocalDevice != null) {
            synchronized (mLock) {
                return mEarcLocalDevice.mEarcStatus;
                return mEarcLocalDevice.mEarcStatus;
            }
            }
        }
        return HDMI_EARC_STATUS_UNKNOWN;
        return HDMI_EARC_STATUS_UNKNOWN;
    }
    }