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

Commit 17b29348 authored by Shubang's avatar Shubang Committed by Shubang Lu
Browse files

CLEANUP: remove mSystemAudioSource

Test: atest com.android.server.hdmi
Change-Id: I09fd5ceb4792b5ca4e2fac555373fc2dd28d8eb6
(cherry picked from commit 823c1822a6303400452f616417225a0ff298b324)
parent c27346fa
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -43,8 +43,6 @@ public class HdmiCecLocalDeviceAudioSystem extends HdmiCecLocalDevice {
    @GuardedBy("mLock")
    private boolean mSystemAudioControlFeatureEnabled;

    protected Integer mSystemAudioSource;

    private boolean mTvSystemAudioModeSupport;

    protected HdmiCecLocalDeviceAudioSystem(HdmiControlService service) {
@@ -232,7 +230,6 @@ public class HdmiCecLocalDeviceAudioSystem extends HdmiCecLocalDevice {
            return true;
        }

        mSystemAudioSource = systemAudioStatusOn ? message.getSource() : null;
        mService.sendCecCommand(
                HdmiCecMessageBuilder.buildSetSystemAudioMode(
                        mAddress, Constants.ADDR_BROADCAST, systemAudioStatusOn));
+2 −2
Original line number Diff line number Diff line
@@ -1732,7 +1732,7 @@ public class HdmiControlService extends SystemService {
                        Slog.w(TAG, "audio system is not available");
                        return;
                    }
                    if (audioSystem().mSystemAudioSource == null) {
                    if (!audioSystem().isSystemAudioActivated()) {
                        Slog.w(TAG, "audio system is not in system audio mode");
                        return;
                    }
@@ -1741,7 +1741,7 @@ public class HdmiControlService extends SystemService {
                    sendCecCommand(HdmiCecMessageBuilder
                            .buildReportAudioStatus(
                                    device.getDeviceInfo().getLogicalAddress(),
                                    audioSystem().mSystemAudioSource,
                                    Constants.ADDR_TV,
                                    scaledVolume,
                                    isMute));
                }