summaryrefslogtreecommitdiffstats
path: root/libs/audioflinger/AudioPolicyManagerBase.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "audio: Omit FM code when HAVE_FM_RADIO is not set""Steve Kondik2010-11-071-0/+20
| | | | | | | | | Cleaned it up, and fixed a misplaced ifdef that broke the whole damn thing. This reverts commit 568f674b8ef1a83b7ba948b0e53e0dd86207d115. Change-Id: I99fde73b2cf283dde7e9bcb1e73cf86e553324d3
* Revert "audio: Omit FM code when HAVE_FM_RADIO is not set"Steve Kondik2010-11-071-24/+0
| | | | This reverts commit c5358c4b94c2953290988be654b284840551b5bd.
* audio: Omit FM code when HAVE_FM_RADIO is not setMichael Webster2010-11-031-0/+24
| | | | Change-Id: If140f0cd1232f927f4870c5de3f25deac73c3778
* support FM Radio audio routing in audio flingerxinyu2010-10-121-4/+33
|
* Sound tweaks: Always on speaker 2.0, headphone attenuation, headphone music ↵Jonas Larsson2010-08-161-13/+93
| | | | vol limit, audio focus requests.
* Fix issue 2416481: Support Voice Dialer over BT SCO.Eric Laurent2010-03-161-12/+22
| | | | | | | | | | | - 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
* Fix bug 2203203 Route STREAM_VOICE_CALL to A2DP when not in call.Jean-Michel Trivi2010-03-141-0/+17
| | | | Change-Id: I5581702780308658415dc4ad19fbe409fdc5c368
* Fix bug 2329540Jean-Michel Trivi2010-03-091-0/+5
| | | | | | | | | | | | | | 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
* Fix issue 2317760: Change the priority between wired headset and A2DP.Eric Laurent2010-03-081-7/+7
| | | | Modified audio policy manager so that wired headset has precedence over A2DP headset.
* Fix issue 2327064: Music played via line out is interrupted due to the phone ↵Eric Laurent2010-02-241-12/+10
| | | | | | | | | | | 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.
* Fix issue 2305382: Pick up original call makes a noisy beep when wired ↵Eric Laurent2010-02-231-3/+21
| | | | | | | | | | 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.
* Remove verbose log from AudioPolicyManagerBase.Eric Laurent2010-01-281-2/+1
|
* Create base class for audio policy manager.Eric Laurent2010-01-131-0/+1925
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.