• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        <devicePort tagName="BLE Headset Out" type="AUDIO_DEVICE_OUT_BLE_HEADSET" role="sink"/>
47        <devicePort tagName="BLE Speaker Out" type="AUDIO_DEVICE_OUT_BLE_SPEAKER" role="sink"/>
48    </devicePorts>
49    <routes>
50        <route type="mix" sink="BT A2DP Out"
51               sources="a2dp output"/>
52        <route type="mix" sink="BT A2DP Headphones"
53               sources="a2dp output"/>
54        <route type="mix" sink="BT A2DP Speaker"
55               sources="a2dp output"/>
56        <route type="mix" sink="BT Hearing Aid Out"
57               sources="hearing aid output"/>
58        <route type="mix" sink="BLE Headset Out"
59               sources="le audio output"/>
60        <route type="mix" sink="BLE Speaker Out"
61               sources="le audio output"/>
62    </routes>
63</module>
64