History log of /frameworks/base/libs/audioflinger/AudioPolicyManagerBase.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ef9500fe53b6ec67b610207832b52f8bfbb20cd5 11-Mar-2010 Eric Laurent <elaurent@google.com> Fix issue 2416481: Support Voice Dialer over BT SCO.

- AudioPolicyManager: allow platform specific choice for opening a direct output.
Also fixed problems in direct output management.
- AudioFliinger: use shorter standby delay and track inactivity grace period for direct output
thread to free hardware resources as soon as possible.
- AudioSystem: do not use cached output selection in getOutput() when a direct output
can be selected.

Change-Id: If44b50d29237b8402ffd7a5ba1dc43c56f903e9b
/frameworks/base/libs/audioflinger/AudioPolicyManagerBase.cpp
e4b8c4230128193ebaa93ebddf8378f2ca5b8430 13-Mar-2010 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 2203203 Route STREAM_VOICE_CALL to A2DP when not in call.

Change-Id: I5581702780308658415dc4ad19fbe409fdc5c368
/frameworks/base/libs/audioflinger/AudioPolicyManagerBase.cpp
758559e6b7e310cf46cc269437f44decd58d68d6 09-Mar-2010 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 2329540
Part 1 of the fix: when the user doesn't elect to use the car dock
for music and media, the APM was not aware of the device being
docked.
This is fixed by dissociating the notification for the APM of
the docking to the dock from the sink state change of the A2DP
device.
Also missing was forcing the volumes to be reevaluated whenever
the device is docked or undocked, as volumes for docks may
differ, even when the same output device is being used.

Change-Id: If5314e27821a71adbd6df6fdf887c45208241d96
/frameworks/base/libs/audioflinger/AudioPolicyManagerBase.cpp
fe2e075e07a4764857c48fbe9b5a11b4d6423f1d 07-Mar-2010 Eric Laurent <elaurent@google.com> Fix issue 2317760: Change the priority between wired headset and A2DP.

Modified audio policy manager so that wired headset has precedence over A2DP headset.
/frameworks/base/libs/audioflinger/AudioPolicyManagerBase.cpp
ce3e038ac96b0460c4fd760439ae6b886918e33d 24-Feb-2010 Eric Laurent <elaurent@google.com> Fix issue 2327064: Music played via line out is interrupted due to the phone call audio on BT hs.

This is not a real fix for the issue but a change to make sure that the behavior is consistent regardless of
external condidions (WIFI ON or OFF, music started before call or not, A2DP device same as SCO device...).

As there is now way to guaranty good quality audio over both SCO and A2DP simultaneously, especially when WIFI is on, We will stick to this behavior:
When music is playing and we are docked to the desk dock and a call is answered with a BT SCO headset, A2DP output will be suspended.
If music is restarted during the call, it will appear muted to the user until the call is terminated.
/frameworks/base/libs/audioflinger/AudioPolicyManagerBase.cpp
22e1ca3fc59acebd05af0225b1eaed0122bc30d2 23-Feb-2010 Eric Laurent <elaurent@google.com> Fix issue 2305382: Pick up original call makes a noisy beep when wired headset connected.

The noise is the residual ring tone that is still playing while the call is answered and the
audio route changed to headset or earpiece.

The fix consists in muting the ringing tone when changing mode from ringtone to in call
and delaying the route change until the audio buffers are emptied.
/frameworks/base/libs/audioflinger/AudioPolicyManagerBase.cpp
f145108a68bf4123ae03544d80ce4fef84320005 28-Jan-2010 Eric Laurent <elaurent@google.com> Remove verbose log from AudioPolicyManagerBase.
/frameworks/base/libs/audioflinger/AudioPolicyManagerBase.cpp
cef3cd79489fa7897ffbacbc4e435651fb04f10d 10-Dec-2009 Eric Laurent <elaurent@google.com> Create base class for audio policy manager.

First implementations of audio policy manager in Eclair branch have shown that most code is common to all platforms.
Creating AudioPolicyManagerBase base class will improve code maintainability and readability.

Audio policy manager code for platforms using generic audio previously in AudioPolicyManagerGeneric is replaced by AudioPolicyManagerBase.
Audio policy manager test code previously in AudioPolicyManagerGeneric is moved to AudioPolicyManagerBase.

Also added a wake lock for delayed commands in AudioPolicyService.
/frameworks/base/libs/audioflinger/AudioPolicyManagerBase.cpp