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

Commit 485e7e13 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

TIF: fix loud volume after input switch when volume is 0

Bug: 19134440
Change-Id: I6291f299a27315e79b505ea36bf96c79437e6b53
parent 5229be05
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -677,7 +677,9 @@ class TvInputHardwareManager implements TvInputHal.Callback {
        private AudioDevicePort mAudioSource;
        private List<AudioDevicePort> mAudioSink = new ArrayList<>();
        private AudioPatch mAudioPatch = null;
        private float mCommittedVolume = 0.0f;
        // Set to an invalid value for a volume, so that current volume can be applied at the
        // first call to updateAudioConfigLocked().
        private float mCommittedVolume = -1f;
        private float mSourceVolume = 0.0f;

        private TvStreamConfig mActiveConfig = null;