From 73270a0aa66c2964ffba4dd7a0cdc0fdc2d3f8f7 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Sat, 12 Oct 2019 10:12:37 +0800 Subject: [PATCH] sm8450-common: audio: Enable AOSP bluetooth audio HAL v2 Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434 --- audio/audio_policy_configuration.xml | 39 ++++--------------- ...hearing_aid_audio_policy_configuration.xml | 38 ------------------ common.mk | 3 +- 3 files changed, 10 insertions(+), 70 deletions(-) delete mode 100644 audio/bluetooth_qti_hearing_aid_audio_policy_configuration.xml diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index 7ce1749..03c822b 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -262,21 +262,6 @@ - - - - - - - - - @@ -319,11 +304,6 @@ - - - @@ -358,7 +338,7 @@ + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,FM Tuner,Telephony Rx"/> + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic"/> - - - @@ -404,12 +378,15 @@ + + + + + + - - - diff --git a/audio/bluetooth_qti_hearing_aid_audio_policy_configuration.xml b/audio/bluetooth_qti_hearing_aid_audio_policy_configuration.xml deleted file mode 100644 index ef87d51..0000000 --- a/audio/bluetooth_qti_hearing_aid_audio_policy_configuration.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/common.mk b/common.mk index f1a4301..4aad379 100644 --- a/common.mk +++ b/common.mk @@ -78,7 +78,6 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/backend_conf.xml:$(TARGET_COPY_OUT_VENDOR)/etc/backend_conf.xml \ - $(LOCAL_PATH)/audio/bluetooth_qti_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_hearing_aid_audio_policy_configuration.xml \ $(LOCAL_PATH)/audio/card-defs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/card-defs.xml \ $(LOCAL_PATH)/audio/media_codecs_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2_audio.xml \ $(LOCAL_PATH)/audio/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \ @@ -86,7 +85,9 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/usecaseKvManager.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usecaseKvManager.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/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.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/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_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 \