1<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2<!-- Copyright (C) 2019 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
18
19    <globalConfiguration speaker_drc_enabled="false"/>
20
21    <modules>
22        <!-- Primary Audio HAL -->
23        <module name="primary" halVersion="2.0">
24            <attachedDevices>
25                <item>Speaker</item>
26                <item>Built-In Mic</item>
27            </attachedDevices>
28            <defaultOutputDevice>Speaker</defaultOutputDevice>
29            <mixPorts>
30                <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY">
31                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
32                             samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
33                </mixPort>
34                <mixPort name="primary input" role="sink">
35                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
36                             samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
37                             channelMasks="AUDIO_CHANNEL_IN_MONO"/>
38                </mixPort>
39            </mixPorts>
40            <devicePorts>
41                <!-- Output devices declaration, i.e. Sink DEVICE PORT -->
42                <devicePort tagName="Speaker" role="sink" type="AUDIO_DEVICE_OUT_SPEAKER">
43                </devicePort>
44                <devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink">
45                </devicePort>
46                <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
47                </devicePort>
48                <devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source">
49                </devicePort>
50            </devicePorts>
51            <!-- route declaration, i.e. list all available sources for a given sink -->
52            <routes>
53                <route type="mix" sink="Speaker"
54                       sources="primary output"/>
55                <route type="mix" sink="Wired Headset"
56                       sources="primary output"/>
57                <route type="mix" sink="Wired Headphones"
58                       sources="primary output"/>
59                <route type="mix" sink="primary input"
60                       sources="Built-In Mic,Wired Headset Mic"/>
61            </routes>
62        </module>
63
64        <!-- Usb Audio HAL -->
65        <xi:include href="usb_audio_policy_configuration.xml"/>
66
67        <!-- Remote Submix Audio HAL -->
68        <xi:include href="r_submix_audio_policy_configuration.xml"/>
69
70    </modules>
71    <!-- End of Modules section -->
72
73    <!-- Volume section -->
74
75    <xi:include href="audio_policy_volumes.xml"/>
76    <xi:include href="default_volume_tables.xml"/>
77
78    <!-- End of Volume section -->
79
80</audioPolicyConfiguration>
81