diff options
author | dianlujitao <dianlujitao@lineageos.org> | 2020-02-05 21:12:48 +0800 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-04-30 00:48:54 +0300 |
commit | fac134b776e7e7dec2a69eb274bb717db179c7bb (patch) | |
tree | 0bc67d6e02a3bcee856edcbddac0467c10cd878d | |
parent | d4d0a243ab92d869462bc4e404cb40ad110a2c62 (diff) |
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
-rw-r--r-- | audio/audio_policy_configuration.xml | 47 | ||||
-rw-r--r-- | properties.mk | 5 | ||||
-rw-r--r-- | proprietary-files.txt | 4 | ||||
-rw-r--r-- | 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 @@ <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> </devicePort> - <devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink" - encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC AUDIO_FORMAT_CELT AUDIO_FORMAT_APTX_ADAPTIVE"> - <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - </devicePort> - <devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink" - encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC AUDIO_FORMAT_CELT AUDIO_FORMAT_APTX_ADAPTIVE"> - <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - </devicePort> - <devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink" - encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC AUDIO_FORMAT_CELT AUDIO_FORMAT_APTX_ADAPTIVE"> - <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - </devicePort> <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/> @@ -340,38 +325,13 @@ sources="Built-In Mic,Built-In Back Mic"/> <route type="mix" sink="record_24" sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic"/> - <route type="mix" sink="BT A2DP Out" - sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload"/> - <route type="mix" sink="BT A2DP Headphones" - sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload"/> - <route type="mix" sink="BT A2DP Speaker" - sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload"/> <route type="mix" sink="hifi_input" sources="USB Device In,USB Headset In" /> </routes> </module> - <!-- A2DP Audio HAL --> - <module name="a2dp" halVersion="2.0"> - <mixPorts> - <mixPort name="a2dp input" role="sink"> - <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/> - </mixPort> - </mixPorts> - - <devicePorts> - <devicePort tagName="BT A2DP In" type="AUDIO_DEVICE_IN_BLUETOOTH_A2DP" role="source"> - <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" - samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/> - </devicePort> - </devicePorts> - - <routes> - <route type="mix" sink="a2dp input" - sources="BT A2DP In"/> - </routes> - </module> + <!-- A2DP Input Audio HAL --> + <xi:include href="/vendor/etc/a2dp_in_audio_policy_configuration.xml"/> <!-- Usb Audio HAL --> <module name="usb" halVersion="2.0"> @@ -396,6 +356,9 @@ <!-- Remote Submix Audio HAL --> <xi:include href="/vendor/etc/r_submix_audio_policy_configuration.xml"/> + <!-- Bluetooth Audio HAL --> + <xi:include href="/vendor/etc/bluetooth_audio_policy_configuration.xml"/> + </modules> <!-- End of Modules section --> 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 @@ -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 |