1<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2<!-- Copyright (C) 2021 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="7.0" xmlns:xi="http://www.w3.org/2001/XInclude">
18    <globalConfiguration speaker_drc_enabled="true"/>
19    <modules>
20        <module name="primary" halVersion="3.0">
21            <attachedDevices>
22                <item>Speaker</item>
23                <item>Built-In Mic</item>
24            </attachedDevices>
25            <defaultOutputDevice>Speaker</defaultOutputDevice>
26            <mixPorts>
27                <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY">
28                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
29                             samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
30                </mixPort>
31                <mixPort name="primary input" role="sink">
32                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
33                             samplingRates="8000 11025 12000 16000 22050 24000 32000 44100 48000"
34                             channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO AUDIO_CHANNEL_IN_FRONT_BACK"/>
35                    <profile name="" format="VX_GOOGLE_B_FORMAT"
36                             samplingRates="192000"
37                             channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO AUDIO_CHANNEL_IN_FRONT_BACK"/>
38                </mixPort>
39            </mixPorts>
40            <devicePorts>
41                <devicePort tagName="Speaker" role="sink" type="AUDIO_DEVICE_OUT_SPEAKER" address="">
42                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
43                             samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
44                    <gains>
45                        <gain name="gain_1" mode="AUDIO_GAIN_MODE_JOINT"
46                              minValueMB="-8400"
47                              maxValueMB="4000"
48                              defaultValueMB="0"
49                              stepValueMB="100"/>
50                    </gains>
51                </devicePort>
52                <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
53                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
54                             samplingRates="8000 11025 12000 16000 22050 24000 32000 44100 48000"
55                             channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO AUDIO_CHANNEL_IN_FRONT_BACK"/>
56                    <profile name="" format="VX_GOOGLE_B_FORMAT"
57                             samplingRates="192000"
58                             channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO AUDIO_CHANNEL_IN_FRONT_BACK"/>
59                </devicePort>
60                <devicePort tagName="Ambient Mic" type="VX_GOOGLE_AUDIO_DEVICE_AMBIENT_MIC" role="source">
61                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
62                             samplingRates="8000 11025 12000 16000 22050 24000 32000 44100 48000"
63                             channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO AUDIO_CHANNEL_IN_FRONT_BACK"/>
64                </devicePort>
65            </devicePorts>
66            <routes>
67                <route type="mix" sink="Speaker" sources="primary output"/>
68                <route type="mix" sink="primary input" sources="Built-In Mic,Ambient Mic"/>
69            </routes>
70        </module>
71    </modules>
72    <volumes/>
73    <surroundSound>
74      <formats>
75        <format name="AUDIO_FORMAT_AC3" />
76        <format name="AUDIO_FORMAT_AAC_LC" subformats="AUDIO_FORMAT_AAC_HE_V1 AUDIO_FORMAT_AAC_HE_V2 AUDIO_FORMAT_AAC_ELD AUDIO_FORMAT_AAC_XHE" />
77        <format name="VX_GOOGLE_B_FORMAT" />
78        <format name="AUDIO_FORMAT_AC4" subformats="VX_GOOGLE_B_FORMAT" />
79      </formats>
80    </surroundSound>
81</audioPolicyConfiguration>
82