From fa6a145a1be2a9595b24c28a87f499e1fee87728 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Sat, 12 Oct 2019 10:12:37 +0800 Subject: [PATCH] sdm660-common: Enable AOSP bluetooth audio HAL v2 Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434 --- audio/audio_policy_configuration.xml | 7 ++- ...uetooth_qti_audio_policy_configuration.xml | 51 ------------------- properties.mk | 2 +- sdm660.mk | 8 ++- 4 files changed, 12 insertions(+), 56 deletions(-) delete mode 100644 audio/bluetooth_qti_audio_policy_configuration.xml diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index b04a5609..0cf22a56 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -297,8 +297,8 @@ - - + + @@ -306,6 +306,9 @@ + + + diff --git a/audio/bluetooth_qti_audio_policy_configuration.xml b/audio/bluetooth_qti_audio_policy_configuration.xml deleted file mode 100644 index 52a41de8..00000000 --- a/audio/bluetooth_qti_audio_policy_configuration.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/properties.mk b/properties.mk index 77858f70..aa729683 100644 --- a/properties.mk +++ b/properties.mk @@ -106,7 +106,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Bluetooth PRODUCT_PROPERTY_OVERRIDES += \ vendor.qcom.bluetooth.soc=cherokee \ - persist.bluetooth.bluetooth_audio_hal.disabled=true \ + persist.bluetooth.bluetooth_audio_hal.disabled=false \ ro.vendor.bluetooth.wipower=false \ persist.bluetooth.a2dp_offload.disabled=false \ persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac \ diff --git a/sdm660.mk b/sdm660.mk index f91e3fdc..665adfbe 100644 --- a/sdm660.mk +++ b/sdm660.mk @@ -133,11 +133,14 @@ PRODUCT_PACKAGES += \ libvolumelistener \ tinymix.vendor +PRODUCT_PACKAGES += \ + audio.bluetooth.default \ + android.hardware.bluetooth.audio@2.0-impl + PRODUCT_COPY_FILES += \ $(COMMON_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ $(COMMON_PATH)/audio/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \ $(COMMON_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ - $(COMMON_PATH)/audio/bluetooth_qti_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_audio_policy_configuration.xml \ $(COMMON_PATH)/audio/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml \ $(COMMON_PATH)/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \ $(COMMON_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \ @@ -145,7 +148,8 @@ PRODUCT_COPY_FILES += \ $(COMMON_PATH)/audio/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml PRODUCT_COPY_FILES += \ - $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ + $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \ + $(TOPDIR)frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \