OSDN Git Service

audio policy manager: more generic A2DP impl.
authorEric Laurent <elaurent@google.com>
Fri, 17 Feb 2012 18:55:44 +0000 (10:55 -0800)
committerEric Laurent <elaurent@google.com>
Thu, 8 Mar 2012 01:53:49 +0000 (17:53 -0800)
commitb4696fc22ba822ed37bd2e3a19bc17514ccc79c8
treef1b48da49653051f22f99e375b7c669f0cb16188
parent77d789de2664ebab2e38448c78edc41487dc8158
audio policy manager: more generic A2DP impl.

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
audio/Android.mk
audio/AudioHardwareInterface.cpp
audio/AudioPolicyManagerBase.cpp
audio/AudioPolicyManagerDefault.h
include/hardware_legacy/AudioPolicyManagerBase.h