blob: 7bbcb34a0c24961ccda6afc1c6858961e0aea85f [file] [log] [blame]
Cheney Ni8b8c39c2019-03-18 14:11:30 +08001<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2<!-- Copyright (C) 2015 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="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink">
47 </devicePort>
48 <devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
49 </devicePort>
50 <devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink">
51 </devicePort>
52 <devicePort tagName="BT SCO Car Kit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT" role="sink">
53 </devicePort>
54 <devicePort tagName="Aux Digital" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink">
55 </devicePort>
56
57 <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
58 </devicePort>
59 <devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source">
60 </devicePort>
61 <devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source">
62 </devicePort>
63 </devicePorts>
64 <!-- route declaration, i.e. list all available sources for a given sink -->
65 <routes>
66 <route type="mix" sink="Speaker"
67 sources="primary output"/>
68 <route type="mix" sink="Wired Headset"
69 sources="primary output"/>
70 <route type="mix" sink="Wired Headphones"
71 sources="primary output"/>
72 <route type="mix" sink="Aux Digital"
73 sources="primary output"/>
74 <route type="mix" sink="BT SCO"
75 sources="primary output"/>
76 <route type="mix" sink="BT SCO Headset"
77 sources="primary output"/>
78 <route type="mix" sink="BT SCO Car Kit"
79 sources="primary output"/>
80 <route type="mix" sink="primary input"
81 sources="Built-In Mic,Wired Headset Mic,BT SCO Headset Mic"/>
82 </routes>
83
84 </module>
85
86 <!-- A2dp Audio HAL -->
87 <xi:include href="a2dp_audio_policy_configuration.xml"/>
88
89 <!-- Usb Audio HAL -->
90 <xi:include href="usb_audio_policy_configuration.xml"/>
91
92 <!-- Remote Submix Audio HAL -->
93 <xi:include href="r_submix_audio_policy_configuration.xml"/>
94
95 </modules>
96 <!-- End of Modules section -->
97
98 <!-- Volume section -->
99
100 <xi:include href="audio_policy_volumes.xml"/>
101 <xi:include href="default_volume_tables.xml"/>
102
103 <!-- End of Volume section -->
104
105</audioPolicyConfiguration>