From b1726a6c2b06e885ffa6a7dfc289f7531bf779e8 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Sat, 12 Oct 2019 10:12:37 +0800 Subject: [PATCH] sm8550-common: audio: Enable AOSP bluetooth audio HAL v2 Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434 --- audio/audio_policy_configuration.xml | 39 ++++++---------------------- common.mk | 2 ++ 2 files changed, 10 insertions(+), 31 deletions(-) diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index 7741665..a260e2b 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -332,21 +332,6 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - - - - - - - - - - - @@ -458,7 +438,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,FM Tuner,Telephony Rx,Echo Reference,BLE In"/> + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BLE In"/> - - - + + + + + + - - - diff --git a/common.mk b/common.mk index 30bb5c5..5ee6b7a 100644 --- a/common.mk +++ b/common.mk @@ -57,6 +57,8 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml PRODUCT_COPY_FILES += \ + frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \ + frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_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 \ frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \