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

Bug: 19134440
Change-Id: I6291f299a27315e79b505ea36bf96c79437e6b53
This commit is contained in:
Wonsik Kim
2015-01-26 17:28:55 +09:00
parent 5229be05b4
commit 485e7e13f4

View File

@@ -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;