From fac134b776e7e7dec2a69eb274bb717db179c7bb Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Wed, 5 Feb 2020 21:12:48 +0800 Subject: sdm660-common: Disable a2dp offload sdm660's BT firmware doesn't support HCI command of a2dp offload used by AOSP BT stack. Change-Id: I7efa82e5bb89ce08f18984c748c626f849f148fa --- audio/audio_policy_configuration.xml | 47 ++++-------------------------------- properties.mk | 5 ---- proprietary-files.txt | 4 --- sdm660.mk | 4 +-- 4 files changed, 7 insertions(+), 53 deletions(-) diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index 3bfeaac..87acaa7 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -241,21 +241,6 @@ - - - - - - - - - @@ -340,38 +325,13 @@ sources="Built-In Mic,Built-In Back Mic"/> - - - - - - - - - - - - - - - - - - - - - + + @@ -396,6 +356,9 @@ + + + diff --git a/properties.mk b/properties.mk index c12762d..24231cb 100644 --- a/properties.mk +++ b/properties.mk @@ -24,10 +24,6 @@ PRODUCT_PROPERTY_OVERRIDES += \ vendor.audio.safx.pbe.enabled=false \ vendor.audio.parser.ip.buffer.size=262144 \ vendor.audio.flac.sw.decoder.24bit=true \ - persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-aac \ - ro.bluetooth.a2dp_offload.supported=true \ - persist.bluetooth.a2dp_offload.disabled=false \ - persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac \ vendor.audio.use.sw.alac.decoder=true \ vendor.audio.use.sw.ape.decoder=true \ vendor.audio.hw.aac.encoder=true \ @@ -40,7 +36,6 @@ PRODUCT_PROPERTY_OVERRIDES += \ vendor.audio.spkr_prot.tx.sampling_rate=48000 PRODUCT_PROPERTY_OVERRIDES += \ - vendor.audio.feature.a2dp_offload.enable=true \ vendor.audio.feature.afe_proxy.enable=true \ vendor.audio.feature.anc_headset.enable=true \ vendor.audio.feature.battery_listener.enable=false \ diff --git a/proprietary-files.txt b/proprietary-files.txt index 94db6cf..52ff6a0 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -63,10 +63,6 @@ vendor/lib/soundfx/libqcvirt.so|ee9eaa81bb24ac0379e06b44ef257967a4d32614 product/lib64/libaptX_encoder.so|df1c89d7af1bb35808d5fe3496b04ba066c10cbc product/lib64/libaptXHD_encoder.so|e13fa70c97caaa24d061678bdee608eb8850a69e -# Bluetooth (aptX) - from jasmine V11.0.8.0.QDIMIXM -vendor/lib/rfsa/adsp/capi_v2_aptX_Classic.so|8305c614ebf13f84f15989631b8fdfdb9828d9be -vendor/lib/rfsa/adsp/capi_v2_aptX_HD.so|eb0e912d25b06f977d5a89345c72d142b7ffb8ae - # Charger - from jasmine V11.0.8.0.QDIMIXM vendor/bin/hvdcp_opti|120837d6d44abfd86515731dd26183be9cdd5596 diff --git a/sdm660.mk b/sdm660.mk index c8e8fcc..fd67994 100644 --- a/sdm660.mk +++ b/sdm660.mk @@ -112,7 +112,6 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ libsndmonitor \ libhdmiedid \ - liba2dpoffload \ libhfp PRODUCT_COPY_FILES += \ @@ -124,8 +123,9 @@ 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/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.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/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 -- cgit v1.2.3