universal8895: Use XML audio policy configuration file
authorBruno Martins <bgcngm@gmail.com>
Mon, 18 Dec 2017 11:20:17 +0000 (11:20 +0000)
committerJan Altensen <info@stricted.net>
Sun, 19 Jan 2020 07:53:19 +0000 (08:53 +0100)
Change-Id: Ia93e30428ff9e27ae409e685a84fa5a8e406bca0

BoardConfigCommon.mk
device-common.mk

index 1d65cfcf35f25814dc87c7ab028f160657f875be..d216fe32f40f16c784d8066f33d95ce9e341fda6 100644 (file)
@@ -19,6 +19,9 @@ LOCAL_PATH := device/samsung/universal8895-common
 # Include path
 TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
 
+# Audio
+USE_XML_AUDIO_POLICY_CONF := 1
+
 # Bluetooth
 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
 
index 3bcc315ce684e34cfa41729538fe61f7b2278bd7..b5fcf2df7e3e897168c171ffc6d59857c8eb7a0a 100644 (file)
@@ -43,6 +43,11 @@ PRODUCT_PACKAGES += \
     audio.a2dp.default \
     libtinycompress
 
+PRODUCT_COPY_FILES += \
+    frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
+    frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
+    frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
+
 # Boot animation
 TARGET_BOOTANIMATION_PRELOAD := true
 TARGET_BOOTANIMATION_TEXTURE_CACHE := true