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 /audio | |
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
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio_policy_configuration.xml | 47 |
1 files changed, 5 insertions, 42 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 --> |