1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Default Primary Audio HAL Module Audio Policy Configuration include file -->
3<module name="primary" halVersion="2.0">
4    <attachedDevices>
5        <item>Speaker</item>
6        <item>Built-In Mic</item>
7        <item>Telephony Tx</item>
8        <item>Telephony Rx</item>
9        <item>FM Tuner</item>
10    </attachedDevices>
11    <defaultOutputDevice>Speaker</defaultOutputDevice>
12    <mixPorts>
13        <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY">
14            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
15                     samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
16        </mixPort>
17        <mixPort name="primary input" role="sink">
18            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
19                     samplingRates="44100" channelMasks="AUDIO_CHANNEL_IN_STEREO"/>
20        </mixPort>
21
22        <mixPort name="telephony_tx" role="source">
23            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
24                     samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
25        </mixPort>
26        <mixPort name="telephony_rx" role="sink">
27            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
28                     samplingRates="44100" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
29        </mixPort>
30
31        <mixPort name="fm_tuner" role="sink">
32            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
33                     samplingRates="44100" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
34        </mixPort>
35   </mixPorts>
36   <devicePorts>
37        <devicePort tagName="Speaker" type="AUDIO_DEVICE_OUT_SPEAKER" role="sink">
38        </devicePort>
39        <devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink">
40        </devicePort>
41
42        <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
43        </devicePort>
44        <devicePort tagName="Telephony Rx" type="AUDIO_DEVICE_IN_TELEPHONY_RX" role="source">
45        </devicePort>
46
47        <devicePort tagName="FM Tuner" type="AUDIO_DEVICE_IN_FM_TUNER" role="source">
48        </devicePort>
49    </devicePorts>
50    <routes>
51        <route type="mix" sink="Speaker"
52               sources="primary output"/>
53        <route type="mix" sink="primary input"
54               sources="Built-In Mic"/>
55
56        <route type="mix" sink="telephony_rx"
57               sources="Telephony Rx"/>
58        <route type="mix" sink="Telephony Tx"
59               sources="telephony_tx"/>
60
61        <route type="mix" sink="fm_tuner"
62               sources="FM Tuner"/>
63    </routes>
64</module>
65