• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Default Primary Audio HAL Module Audio Policy Configuration include flie -->
3<module name="primary" halVersion="2.0">
4    <attachedDevices>
5        <item>Speaker</item>
6        <item>Built-In Mic</item>
7    </attachedDevices>
8    <defaultOutputDevice>Speaker</defaultOutputDevice>
9    <mixPorts>
10        <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY">
11            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
12                     samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
13        </mixPort>
14        <mixPort name="primary input" role="sink">
15            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
16                     samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
17        </mixPort>
18   </mixPorts>
19   <devicePorts>
20        <devicePort tagName="Speaker" type="AUDIO_DEVICE_OUT_SPEAKER" role="sink">
21        </devicePort>
22
23        <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
24        </devicePort>
25    </devicePorts>
26    <routes>
27        <route type="mix" sink="Speaker"
28               sources="primary output"/>
29        <route type="mix" sink="primary input"
30               sources="Built-In Mic"/>
31    </routes>
32</module>
33