• 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    </mixPorts>
14    <devicePorts>
15        <!-- A2DP Audio Ports -->
16        <devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink">
17            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
18                     samplingRates="44100,48000,88200,96000"
19                     channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
20        </devicePort>
21        <devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink">
22            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
23                     samplingRates="44100,48000,88200,96000"
24                     channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
25        </devicePort>
26        <devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink">
27            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
28                     samplingRates="44100,48000,88200,96000"
29                     channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
30        </devicePort>
31        <!-- Hearing AIDs Audio Ports -->
32        <devicePort tagName="BT Hearing Aid Out" type="AUDIO_DEVICE_OUT_HEARING_AID" role="sink"/>
33    </devicePorts>
34    <routes>
35        <route type="mix" sink="BT A2DP Out"
36               sources="a2dp output"/>
37        <route type="mix" sink="BT A2DP Headphones"
38               sources="a2dp output"/>
39        <route type="mix" sink="BT A2DP Speaker"
40               sources="a2dp output"/>
41        <route type="mix" sink="BT Hearing Aid Out"
42               sources="hearing aid output"/>
43    </routes>
44</module>
45