From 7996f999bea23fa72f056f68b518b934c0e1a47f Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Wed, 21 Oct 2009 08:19:36 -0700 Subject: [PATCH] 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)