summaryrefslogtreecommitdiffstats
path: root/audio/AudioPolicyManagerDefault.h
Commit message (Collapse)AuthorAgeFilesLines
* audio policy: use configuration fileEric Laurent2012-04-031-4/+0
| | | | | | | | | | | | | | | | The audio policy manager implementation now reads a configuration file at boot time that contains descriptors for available audio hardware modules and for each module the profiles of available inputs and outputs streams. The configuration file path on the target is: /system/etc/audio_policy.conf. A default configuration file is given that defines a basic configuration with one primary audio hw module capable of playback and capture. Each platform or device should have its own audio_policy.conf file. Also removed default value of fromCache argument of getDeviceForStrategy() and getNewDevice() methods. Change-Id: I0c773d2331508bbc787f89b123dd6a7b8c10d459
* audio policy manager: more generic A2DP impl.Eric Laurent2012-03-071-4/+0
| | | | | | | | | | | | | | | | | | | | This change makes support for A2DP related audio policy more generic: -removed WITH_A2DP compilation switch -use output profile descriptors listing the parameters (sampling rate, format...) devices and attributes (low power, tunneling...) for each available output. All the behavior specific to A2DP is derived from the A2DP output profile descriptor. - removed obsolete a2dpUsedForSonification() method. This is a first step towards a more generic support for different audio hardware modules (USB, HDMI) and output streams supporting different combinations of parameters (sampling rate, format...) and attributes (low power, tunneling...). Ultimately, the hw modules and output descriptors will loaded from a configuration file. Change-Id: Ife3e49e1afbcb72613bfc8ce38919bb087ca85ea
* hardware_legacy/audio: provide a default audio policy implementationDima Zavin2011-04-271-0/+43
This uses the legacy policy code to build a default implementation that can be used while we figure out what the new policy inheritance should look like. Change-Id: I3e4154abc7152b4f560b28e391a268bf508767e3 Signed-off-by: Dima Zavin <dima@android.com>