1<?xml version="1.0" encoding="UTF-8"?> 2<!-- Bluetooth Audio HAL Audio Policy Configuration file --> 3<module name="bluetooth" halVersion="2.0"> 4 <mixPorts> 5 <!-- A2DP Audio Ports --> 6 <mixPort name="a2dp output" role="source"/> 7 <!-- Hearing AIDs Audio Ports --> 8 <mixPort name="hearing aid output" role="source"> 9 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 10 samplingRates="24000,16000" 11 channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 12 </mixPort> 13 <!-- Le Audio Audio Ports --> 14 <mixPort name="le audio output" role="source"> 15 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 16 samplingRates="8000,16000,24000,32000,44100,48000" 17 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> 18 <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" 19 samplingRates="8000,16000,24000,32000,44100,48000" 20 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> 21 <profile name="" format="AUDIO_FORMAT_PCM_32_BIT" 22 samplingRates="8000,16000,24000,32000,44100,48000" 23 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> 24 </mixPort> 25 </mixPorts> 26 <devicePorts> 27 <!-- A2DP Audio Ports --> 28 <devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink"> 29 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 30 samplingRates="44100,48000,88200,96000" 31 channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 32 </devicePort> 33 <devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink"> 34 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 35 samplingRates="44100,48000,88200,96000" 36 channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 37 </devicePort> 38 <devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink"> 39 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 40 samplingRates="44100,48000,88200,96000" 41 channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 42 </devicePort> 43 <!-- Hearing AIDs Audio Ports --> 44 <devicePort tagName="BT Hearing Aid Out" type="AUDIO_DEVICE_OUT_HEARING_AID" role="sink"/> 45 <!-- BLE Audio Ports --> 46 <!-- Note that these device types are not valid in HAL versions < 7. Any device 47 running pre-V7 HAL and using this file will not pass VTS. Need to use 48 bluetooth_audio_policy_configuration_7_0.xml instead. 49 --> 50 <devicePort tagName="BLE Headset Out" type="AUDIO_DEVICE_OUT_BLE_HEADSET" role="sink"/> 51 <devicePort tagName="BLE Speaker Out" type="AUDIO_DEVICE_OUT_BLE_SPEAKER" role="sink"/> 52 </devicePorts> 53 <routes> 54 <route type="mix" sink="BT A2DP Out" 55 sources="a2dp output"/> 56 <route type="mix" sink="BT A2DP Headphones" 57 sources="a2dp output"/> 58 <route type="mix" sink="BT A2DP Speaker" 59 sources="a2dp output"/> 60 <route type="mix" sink="BT Hearing Aid Out" 61 sources="hearing aid output"/> 62 <route type="mix" sink="BLE Headset Out" 63 sources="le audio output"/> 64 <route type="mix" sink="BLE Speaker Out" 65 sources="le audio output"/> 66 </routes> 67</module> 68