History log of /hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c16ac09f510437e8340be691720177a490ae78f0 01-Nov-2011 Eric Laurent <elaurent@google.com> Force camera shutter sound to speaker in Japan.

Make sure that camera shutter sound is output to device speaker also while
in call.
Added a new strategy for enforced audible stream to address this case as
the routing policy is now different from sonification strategy.

Issue 5548406.

Change-Id: I2de39dfaef7d90e3804b238b1379f0f59b75e985
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
e43c5c4ca4477a6b384711552c3e990609039d93 18-Oct-2011 Eric Laurent <elaurent@google.com> Fix issue 5440852: Youtube volume is too small ...

When no DRC is applied by the platform when playing
over the device speaker, faint audio signals are not boosted and
barely audible until the media volume is raised to about one fourth
of the range.

Compensate this by applying a different volume curve for music stream
when the speaker is selected.

Change-Id: I03f316fb28150eda50b05dfa12310701e2674648
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
cd057ad2774903c62f5c11bc71c4e7357aee71b8 12-Sep-2011 Eric Laurent <elaurent@google.com> Issue 5256795: Phone ringtone volume is too low

Modified the volume curve for ringtones and notifications
in audio policy manager. The first volume step now corresponds to
-30dB instead of -50dB thus making ringtone much more
audible for low volume settings.

Also made a generic implementation of volume curves according to
audio policy strategies.

Change-Id: Ieb7916ba2e53c2a10a47efec82814cabed21c48b
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
582a15744be109fb630db7dbd1d1bdf22ff44f12 11-Aug-2011 Eric Laurent <elaurent@google.com> AudioPolicyManager: register effect CPU on enable

Audio effect CPU usage is now registered on enable and
unregistered on disable instead of when the effect is
created or destroyed.

Change-Id: Icffcede9558d8d41887278f0efef2df430927381
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
1c65a49da0c89f75e528354ef02de5dc93a28232 18-Jun-2011 Eric Laurent <elaurent@google.com> Audio effects: support for audio pre processing

Audio policy manager: allow registration of audio effects on
inputs too.

Change-Id: I92efa5b51cfde591052a5c56ba2b0b84de80df0f
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
e81531e91ecae92aff471dbff9cbeb0f95ff4a80 20-Apr-2011 Dima Zavin <dima@android.com> hardware_legacy: provide HAL helpers for legacy audio users

This doesn't actually create a HAL, but rather a set of helper static
libraries that device specific libraries (i.e. the old libaudio pieces)
can link against to create a proper audio HAL module.

We provide an audio_policy static wrapper and audio hardware interface
static wrapper.

Change-Id: Ie56195447ad24b83888f752dca24674b0afd8a76
Signed-off-by: Dima Zavin <dima@android.com>
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
3775706211178bf0d252fd30b9ff1c00926c8535 15-Mar-2011 Eric Laurent <elaurent@google.com> Improvement for issue 3489986: BT SCO volume

Add a parameter to applyStreamVolumes() to force stream volume update.

Change-Id: I3cc82e516bb7c76c28c2470b06711c44f4789ce5
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
fafb18fb31cc4ab3c73585ba508f7643c9a9e3ad 10-Feb-2011 Glenn Kasten <gkasten@google.com> Bug 3352047 Wrong message when adjusting volume

Add hidden AudioManager.getDevicesForStream and output device codes.

Change-Id: I45be59a2774196a135d013e45f38033036f74257
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
793dd9f2be9c802c5e78831fe6765d697466eaf4 04-Feb-2011 Eric Laurent <elaurent@google.com> am 01056fcf: am 36291a74: Fix issue 3371080.

* commit '01056fcfbbbb577f7d70324a4d6a3a211a519951':
Fix issue 3371080.
36291a74cd212c4172ac054ad0eec686b7e15c96 02-Feb-2011 Eric Laurent <elaurent@google.com> Fix issue 3371080.

Move isStreamActive() method from AudioFlinger to AudioPolicyManager.
iStreamActive() now specifies a time window during which the stream is considered
active after it actually stopped.

Change-Id: Ib0d7d8f061b9f809d307ecfac40960ef582e5f0f
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
f2faac71fd54ef16807b94d19e46d7ad99b001a7 25-Jan-2011 Jean-Michel Trivi <jmtrivi@google.com> Bug 3376700 Update APM header for volume initialization and computation

Change-Id: I7cb31c9ecd3c347bfa72cad5a331500a20fdcfbe
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
61f357948648ff45d35ec79725db4e1b12c268dc 19-Jan-2011 Eric Laurent <elaurent@google.com> Tentative fix for issue 3362362.

Added an initCheck() method to AudioPolicyInterface to verify
successful initialization of AudioPolicyManager.

Change-Id: I4c892282dbeb3246ee6c006bd206a3e723bcb71f
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
f9e188482f164ea7602ecdea4b796fa50542e597 01-Dec-2010 Eric Laurent <elaurent@google.com> am 3cb64cb8: am 2f2db765: Fix issue 3142808.

* commit '3cb64cb8bbda335affcb3c71fce3c4f908a97111':
Fix issue 3142808.
3e480fa067136253ae05faaba77f814f42cd56f0 16-Nov-2010 Jean-Michel Trivi <jmtrivi@google.com> Support new audio mode for audio communication other than telephony.

Change-Id: I965cbeee67f72e31240e3e8cd2630bf22a03b9ea
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
2f2db765228f110b37a2851d1199d3c72d313c6d 02-Nov-2010 Eric Laurent <elaurent@google.com> Fix issue 3142808.

There is a bug in the way audio policy manager handles A2DP interface suspend/restore
when SCO is used. This bug is not new but has been triggered by a change in the timing
of the events received by audio policy manager when a call is setup and torn down
introduced by commit 164a8f86c7e48992691368c4895709c3bdb835a4.

The fix consists in grouping the control of A2DP suspended state in a single function
that is called systematically when conditions affecting this state are changed:
- call state change
- device connection/disconnection
- change in forced usage.

Change-Id: Ib76a999513b5afbfd59ba945f8650d2a48d6f480
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
7a25fd7138dd87e1d697e12ea9a69aee7c3ae814 31-Aug-2010 Eric Laurent <elaurent@google.com> am bab20b67: am d6e68c3a: Fix issue 2952766.

Merge commit 'bab20b6759d9f0445e4ff5f27f0a3666f0efafa5'

* commit 'bab20b6759d9f0445e4ff5f27f0a3666f0efafa5':
Fix issue 2952766.
d6e68c3ae5677bc6127628d1c700b11c8f0fcdaf 28-Aug-2010 Eric Laurent <elaurent@google.com> Fix issue 2952766.

The fix for issue 2952766 showed some unused code in
AudioPolicyManagerBase::checkOutputForStrategy(): since commit
eb8f850d0b7e53956e917fd9645f808c1a09bc88: there is no need
to update the hardware output device as it will be updated when the
new tracks are created by audioflinger.

Change-Id: I2f46fab58a5db3b4cd03fdaeebd7d6603c8dbbdd
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
3be78bce2b78d059cb1325367f43873fb3be775a 20-Jul-2010 Eric Laurent <elaurent@google.com> resolved conflicts for merge of 930fe98b to master

Change-Id: Ib6ab3b02aede7e07b71e19b16d305919be849bdd
d2b227e76033d8c44b71d2982028a63436d3fe84 13-Jul-2010 Eric Laurent <elaurent@google.com> Audio policy manager changes for audio effects

Added methods for audio effects management by audio policy manager.
- control of total CPU load and memory used by effect engines
- selection of output stream for global effects
- added audio session id in parameter list for startOutput() and stopOutput().
this is not used in default audio policy manager implementation.

Change-Id: I3467e64035387cc5272266b1318a5ed788958374
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
564c30323762685cdb811e2a985ad374a691745e 25-May-2010 Eric Laurent <elaurent@google.com> Fix issue 2641884: Bluetooth volume is dependent on in call volume.

The problem is that the code in AudioPolicyManagerBase::checkAndSetVolume() that forces
voice volume to max when setting bluetooth SCO volume is not called if the bluetooth stream
volume did not actually change. So even if we re apply volumes when switching to bluetooth
device, the voice volume is not changed in audio HAL and remains what it was when routed to earpiece.
What makes things worse on Passion is that stream volumes are limited when connected to bluetooth
and their actual value does not change as soon as they exceed the limit threshold.

Change-Id: Ic6c54b4a7fd54983f445de9a9b5cd2ea0025155c
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
68f279fa86145752e424a9cbed1a2e2ee21e10b1 04-Feb-2010 Eric Laurent <elaurent@google.com> Fix issue 2416481: Support Voice Dialer over BT SCO.

Make the choice of opening a direct output stream platform specific.

Change-Id: I63e5464a18aaa3600e9fed6cec0518ff1fad4dbd
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
195368626339aefc4732661d009e8de1aacc24d1 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.
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
e6c221466fe4ec2940c672126999d28ce01a49f1 16-Feb-2010 Eric Laurent <elaurent@google.com> Fix issue 2440226: Car dock volume synchronization.

Make computeVolume() method virtual so that its implementation can be platform specific.
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h
de55cfb02db874136caf9c05927cee4028296147 14-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.
/hardware/libhardware_legacy/include/hardware_legacy/AudioPolicyManagerBase.h