From f6d97840770696cac9ad788e0d0cc5519c90ebd3 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Sat, 12 Oct 2019 10:12:37 +0800 Subject: [PATCH] sm8350-common: audio: Enable AOSP bluetooth audio HAL v2 Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434 --- audio/audio_policy_configuration.xml | 83 ++----------------- ...hearing_aid_audio_policy_configuration.xml | 38 --------- common.mk | 5 +- 3 files changed, 11 insertions(+), 115 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 b082ea6..7ccd1b5 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -308,21 +308,6 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - - - - - - - - @@ -365,11 +350,6 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - - @@ -405,7 +385,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"/> + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -493,12 +423,15 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + + + + - - - 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 7707ae1..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 41be931..04c82c7 100644 --- a/common.mk +++ b/common.mk @@ -46,8 +46,7 @@ PRODUCT_PACKAGES += \ android.hardware.soundtrigger@2.2-impl PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/audio/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \ - $(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/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_lahaina/audio_effects.xml \ @@ -65,7 +64,9 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_yupik/audio_policy_configuration.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/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \