summaryrefslogtreecommitdiffstats
path: root/media/mediaserver
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-05-21 08:14:08 -0700
committerEric Laurent <elaurent@google.com>2014-05-21 08:58:19 -0700
commit98c6be0e30fa28e752b13f3dd5986d41710bb7ae (patch)
treef4184b5bd860b09ffa8172257212862e0352425d /media/mediaserver
parent272b7f26c300d2029f278cf2af523cf94e513b89 (diff)
downloadframeworks_av-98c6be0e30fa28e752b13f3dd5986d41710bb7ae.zip
frameworks_av-98c6be0e30fa28e752b13f3dd5986d41710bb7ae.tar.gz
frameworks_av-98c6be0e30fa28e752b13f3dd5986d41710bb7ae.tar.bz2
audio policy: split audio policy library
Split audio policy library into a service part and a policy part. This will allow OEMs to customize the policy part: - libaudiopolicyservice for the service. - libaudiopolicymanager for the policy. Two build options can be defined in device make file to select the policy library: - USE_LEGACY_AUDIO_POLICY = 1: this will use the legacy policy in hardware/libhardware_legacy implemented by AudioPolicyManagerBase class. This policy is loaded as a harware module and exposes the audio policy HAL defined in include/hardware/audio_policy.h and is in a library called audio_policy.XXX.so (e.g audio_policy.default.so) The legacy HAL will not be updated with new features. If USE_LEGACY_AUDIO_POLICY is not defined, the policy is implemented by a class named AudioPolicyManager exposing an interface defined in AudioPolicyInterface.h. The corresponding library is libaudiopolicymanager.so. New features will be added only to AudioPolicyInterface.h The default implementation is provided here in file AudioPolicyManager.cpp OEMs wanting to cutomize the policy can implement the AudioPolicyManager class and provide the libaudiopolicymanager.so library. In this case the device make file should define: - USE_CUSTOM_AUDIO_POLICY = 1 For now, USE_LEGACY_AUDIO_POLICY = 1 is forced in audio policy service make file. This will be removed when the new audio policy is enabled. Change-Id: I066799dacc9b182b468a43d48ff7798c9109a414
Diffstat (limited to 'media/mediaserver')
-rw-r--r--media/mediaserver/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/mediaserver/Android.mk b/media/mediaserver/Android.mk
index d3e546a..15b2bc0 100644
--- a/media/mediaserver/Android.mk
+++ b/media/mediaserver/Android.mk
@@ -15,7 +15,7 @@ LOCAL_SRC_FILES:= \
LOCAL_SHARED_LIBRARIES := \
libaudioflinger \
- libaudiopolicy \
+ libaudiopolicyservice \
libcamera_metadata\
libcameraservice \
libmedialogservice \