Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
Modified checkAndSetVolume() method to adjust VOICE_CALL, BLUETOOTH_SCO and DTMF stream volumes to match audio hardware behavior (never 0). Also do the following adjustments on stream volumes: - VOICE_CALL: if in call, force software volume to max to avoid applying the volume twice (software mixer + audio hardware) send setVoiceVolume() to set in call volume in audio hardware - BLUETOOTH_SCO: send setVoiceVolume() with max value because volume is applied by BT headset and should not be also applied by audio hardware. - DTMF: if in call and not using the BT SCO device, force software volume to max to avoid applying the volume twice (software mixer + audio hardware)
This commit is contained in:
parent
b5075dd3df
commit
7996f999be