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        <mixPort name="le audio broadcast output" role="source" />
16        <mixPort name="le audio input" role="sink">
17            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
18                     samplingRates="8000 16000 24000 32000 44100 48000"
19                     channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/>
20            <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED"
21                     samplingRates="8000 16000 24000 32000 44100 48000"
22                     channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/>
23            <profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
24                     samplingRates="8000 16000 24000 32000 44100 48000"
25                     channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/>
26        </mixPort>
27    </mixPorts>
28    <devicePorts>
29        <!-- A2DP Audio Ports -->
30        <devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink">
31            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
32                     samplingRates="44100 48000 88200 96000"
33                     channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
34        </devicePort>
35        <devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink">
36            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
37                     samplingRates="44100 48000 88200 96000"
38                     channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
39        </devicePort>
40        <devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink">
41            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
42                     samplingRates="44100 48000 88200 96000"
43                     channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
44        </devicePort>
45        <!-- Hearing AIDs Audio Ports -->
46        <devicePort tagName="BT Hearing Aid Out" type="AUDIO_DEVICE_OUT_HEARING_AID" role="sink"/>
47        <!-- BLE Audio Ports -->
48        <devicePort tagName="BLE Headset Out" type="AUDIO_DEVICE_OUT_BLE_HEADSET" role="sink"/>
49        <devicePort tagName="BLE Speaker Out" type="AUDIO_DEVICE_OUT_BLE_SPEAKER" role="sink"/>
50        <devicePort tagName="BLE Headset In" type="AUDIO_DEVICE_IN_BLE_HEADSET" role="source"/>
51        <devicePort tagName="BLE Broadcast Out" type="AUDIO_DEVICE_OUT_BLE_BROADCAST" 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="le audio input"
65               sources="BLE Headset In"/>
66        <route type="mix" sink="BLE Speaker Out"
67               sources="le audio output"/>
68        <route type="mix" sink="BLE Broadcast Out"
69               sources="le audio broadcast output"/>
70    </routes>
71</module>
72