blob: 3fde5b89424d6d17489988f969e49659387acc5e [file] [log] [blame]
LuK133769135952018-09-09 17:39:16 +02001<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2<!-- Copyright (c) 2016-2018, The Linux Foundation. All rights reserved
3 Not a Contribution.
4-->
5<!-- Copyright (C) 2015 The Android Open Source Project
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18-->
19
20<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
21 <!-- version section contains a “version” tag in the form “major.minor” e.g version=”1.0” -->
22
23 <!-- Global configuration Decalaration -->
24 <globalConfiguration speaker_drc_enabled="true"/>
25
26
27 <!-- Modules section:
28 There is one section per audio HW module present on the platform.
29 Each module section will contains two mandatory tags for audio HAL “halVersion” and “name”.
30 The module names are the same as in current .conf file:
31 “primary”, “A2DP”, “remote_submix”, “USB”
32 Each module will contain the following sections:
33 “devicePorts”: a list of device descriptors for all input and output devices accessible via this
34 module.
35 This contains both permanently attached devices and removable devices.
36 “mixPorts”: listing all output and input streams exposed by the audio HAL
37 “routes”: list of possible connections between input and output devices or between stream and
38 devices.
39 "route": is defined by an attribute:
40 -"type": <mux|mix> means all sources are mutual exclusive (mux) or can be mixed (mix)
41 -"sink": the sink involved in this route
42 -"sources": all the sources than can be connected to the sink via vis route
43 “attachedDevices”: permanently attached devices.
44 The attachedDevices section is a list of devices names. The names correspond to device names
45 defined in <devicePorts> section.
46 “defaultOutputDevice”: device to be used by default when no policy rule applies
47 -->
48 <modules>
49 <!-- Primary Audio HAL -->
50 <module name="primary" halVersion="2.0">
51 <attachedDevices>
52 <item>Earpiece</item>
53 <item>Speaker</item>
54 <item>Telephony Tx</item>
55 <item>Built-In Mic</item>
56 <item>Built-In Back Mic</item>
57 <item>FM Tuner</item>
58 <item>Telephony Rx</item>
59 </attachedDevices>
60 <defaultOutputDevice>Speaker</defaultOutputDevice>
61 <mixPorts>
62 <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY">
63 <profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
64 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
65 </mixPort>
66 <mixPort name="raw" role="source"
67 flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW">
68 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
69 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
70 </mixPort>
71 <mixPort name="deep_buffer" role="source"
72 flags="AUDIO_OUTPUT_FLAG_DEEP_BUFFER">
73 <profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
74 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
75 </mixPort>
76 <mixPort name="mmap_no_irq_out" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_MMAP_NOIRQ">
77 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
78 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
79 </mixPort>
80 <mixPort name="hifi_playback" role="source" />
81 <mixPort name="compress_passthrough" role="source"
82 flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING">
83 <profile name="" format="dynamic"
84 samplingRates="dynamic" channelMasks="dynamic"/>
85 </mixPort>
86 <mixPort name="direct_pcm" role="source"
87 flags="AUDIO_OUTPUT_FLAG_DIRECT">
88 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
89 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
90 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
91 <profile name="" format="AUDIO_FORMAT_PCM_8_24_BIT"
92 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000"
93 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
94 <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED"
95 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000"
96 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
97 <profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
98 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000"
99 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
100 </mixPort>
101 <mixPort name="compressed_offload" role="source"
102 flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING">
103 <profile name="" format="AUDIO_FORMAT_FLAC"
104 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
105 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
106 <profile name="" format="AUDIO_FORMAT_ALAC"
107 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
108 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
109 <profile name="" format="AUDIO_FORMAT_APE"
110 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
111 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
112 <profile name="" format="AUDIO_FORMAT_AAC_LC"
113 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
114 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
115 <profile name="" format="AUDIO_FORMAT_AAC_HE_V1"
116 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
117 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
118 <profile name="" format="AUDIO_FORMAT_AAC_HE_V2"
119 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
120 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
121 <profile name="" format="AUDIO_FORMAT_AC3"
122 samplingRates="32000,44100,48000"
123 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1"/>
124 <profile name="" format="AUDIO_FORMAT_E_AC3"
125 samplingRates="32000,44100,48000"
126 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
127 <profile name="" format="AUDIO_FORMAT_E_AC3_JOC"
128 samplingRates="32000,44100,48000"
129 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
130 <profile name="" format="AUDIO_FORMAT_DTS"
131 samplingRates="32000,44100,48000"
132 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1"/>
133 <profile name="" format="AUDIO_FORMAT_DTS_HD"
134 samplingRates="32000,44100,48000,64000,88200,96000,128000,176400,192000"
135 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
136 <profile name="" format="AUDIO_FORMAT_WMA"
137 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
138 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
139 <profile name="" format="AUDIO_FORMAT_WMA_PRO"
140 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
141 channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
142 <profile name="" format="AUDIO_FORMAT_VORBIS"
143 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
144 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
145 <profile name="" format="AUDIO_FORMAT_AAC_ADTS_LC"
146 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
147 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
148 <profile name="" format="AUDIO_FORMAT_AAC_ADTS_HE_V1"
149 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
150 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
151 <profile name="" format="AUDIO_FORMAT_AAC_ADTS_HE_V2"
152 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
153 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
154 </mixPort>
155 <mixPort name="dsd_compress_passthrough" role="source"
156 flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING">
157 <profile name="" format="AUDIO_FORMAT_DSD"
158 samplingRates="2822400,5644800"
159 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
160 </mixPort>
161 <mixPort name="voice_tx" role="source">
162 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
163 samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
164 </mixPort>
165 <mixPort name="voip_rx" role="source"
166 flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX">
167 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
168 samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
169 </mixPort>
170 <mixPort name="incall_music_uplink" role="source"
171 flags="AUDIO_OUTPUT_FLAG_INCALL_MUSIC">
172 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
173 samplingRates="8000,16000,48000"
174 channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
175 </mixPort>
176
177 <mixPort name="primary input" role="sink" maxOpenCount="2" maxActiveCount="2">
178 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
179 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
180 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
181 </mixPort>
182 <mixPort name="surround_sound" role="sink" maxActiveCount="2">
183 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
184 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
185 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6"/>
186 </mixPort>
187 <mixPort name="usb_surround_sound" role="sink">
188 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
189 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000"
190 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
191 <profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
192 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000"
193 channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
194 <profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
195 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000"
196 channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
197 </mixPort>
198 <mixPort name="record_24" role="sink">
199 <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED"
200 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,96000,192000"
201 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/>
202 <profile name="" format="AUDIO_FORMAT_PCM_8_24_BIT"
203 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,96000,192000"
204 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/>
205 <profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
206 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,96000,192000"
207 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/>
208 </mixPort>
209 <mixPort name="voice_rx" role="sink">
210 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
211 samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
212 </mixPort>
213 <mixPort name="mmap_no_irq_in" role="sink" flags="AUDIO_INPUT_FLAG_MMAP_NOIRQ">
214 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
215 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
216 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3"/>
217 </mixPort>
218 <mixPort name="hifi_input" role="sink" />
219 </mixPorts>
220
221 <devicePorts>
222 <!-- Output devices declaration, i.e. Sink DEVICE PORT -->
223 <devicePort tagName="Earpiece" type="AUDIO_DEVICE_OUT_EARPIECE" role="sink">
224 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
225 samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
226 </devicePort>
227 <devicePort tagName="Speaker" role="sink" type="AUDIO_DEVICE_OUT_SPEAKER" address="">
228 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
229 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
230 </devicePort>
231 <devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink">
232 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
233 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
234 </devicePort>
235 <devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink">
236 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
237 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
238 </devicePort>
239 <devicePort tagName="Line" type="AUDIO_DEVICE_OUT_LINE" role="sink">
240 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
241 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
242 </devicePort>
243 <devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
244 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
245 samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
246 </devicePort>
247 <devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink">
248 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
249 samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
250 </devicePort>
251 <devicePort tagName="BT SCO Car Kit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT" role="sink">
252 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
253 samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
254 </devicePort>
255 <devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink">
256 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
257 samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
258 </devicePort>
259 <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink">
260 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
261 samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
262 </devicePort>
263 <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink">
264 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
265 samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
266 </devicePort>
267 <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink">
268 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
269 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
270 </devicePort>
271 <devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink">
272 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
273 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
274 </devicePort>
275 <devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink">
276 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
277 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
278 </devicePort>
279 <devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink">
280 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
281 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
282 </devicePort>
283 <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink">
284 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
285 samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
286 </devicePort>
287 <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink">
288 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
289 samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
290 </devicePort>
291
292 <!-- Input devices declaration, i.e. Source DEVICE PORT -->
293 <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
294 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
295 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
296 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
297 </devicePort>
298 <devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source">
299 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
300 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
301 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
302 </devicePort>
303 <devicePort tagName="FM Tuner" type="AUDIO_DEVICE_IN_FM_TUNER" role="source">
304 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
305 samplingRates="48000"
306 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
307 </devicePort>
308 <devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source">
309 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
310 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
311 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
312 </devicePort>
313 <devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source">
314 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
315 samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
316 </devicePort>
317 <devicePort tagName="Telephony Rx" type="AUDIO_DEVICE_IN_TELEPHONY_RX" role="source">
318 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
319 samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
320 </devicePort>
321 <devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source">
322 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
323 samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
324 <profile name="" format="AUDIO_FORMAT_PCM_8_24_BIT"
325 samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"
326 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
327 <!-- edit as needed -->
328 <profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
329 samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"
330 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
331 </devicePort>
332 <devicePort tagName="USB Headset In" type="AUDIO_DEVICE_IN_USB_HEADSET" role="source">
333 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
334 samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"
335 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
336 <profile name="" format="AUDIO_FORMAT_PCM_8_24_BIT"
337 samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"
338 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
339 <!-- edit as needed -->
340 <profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
341 samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"
342 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
343 </devicePort>
344
345 </devicePorts>
346 <!-- route declaration, i.e. list all available sources for a given sink -->
347 <routes>
348 <route type="mix" sink="Earpiece"
349 sources="primary output,raw,deep_buffer,voip_rx,mmap_no_irq_out"/>
350 <route type="mix" sink="Speaker"
351 sources="primary output,raw,deep_buffer,voip_rx,mmap_no_irq_out"/>
352 <route type="mix" sink="Wired Headset"
353 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/>
354 <route type="mix" sink="Wired Headphones"
355 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/>
356 <route type="mix" sink="Line"
357 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/>
358 <route type="mix" sink="HDMI"
359 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,compress_passthrough,voip_rx"/>
360 <route type="mix" sink="Proxy"
361 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload"/>
362 <route type="mix" sink="FM"
363 sources="primary output"/>
364 <route type="mix" sink="BT SCO"
365 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
366 <route type="mix" sink="BT SCO Headset"
367 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
368 <route type="mix" sink="BT SCO Car Kit"
369 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
370 <route type="mix" sink="USB Device Out"
371 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
372 <route type="mix" sink="USB Headset Out"
373 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
374 <route type="mix" sink="Telephony Tx"
375 sources="voice_tx,incall_music_uplink"/>
376 <route type="mix" sink="voice_rx"
377 sources="Telephony Rx"/>
378 <route type="mix" sink="primary input"
379 sources="Wired Headset Mic,BT SCO Headset Mic,FM Tuner,USB Device In,USB Headset In,Telephony Rx"/>
380 <route type="mix" sink="surround_sound"
381 sources="Built-In Mic,Built-In Back Mic"/>
382 <route type="mix" sink="usb_surround_sound"
383 sources="USB Device In,USB Headset In"/>
384 <route type="mix" sink="record_24"
385 sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic"/>
386 <route type="mix" sink="mmap_no_irq_in"
387 sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,USB Device In,USB Headset In"/>
388 <route type="mix" sink="BT A2DP Out"
389 sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
390 <route type="mix" sink="BT A2DP Headphones"
391 sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
392 <route type="mix" sink="BT A2DP Speaker"
393 sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
394 <route type="mix" sink="hifi_input" sources="USB Device In,USB Headset In" />
395 </routes>
396
397 </module>
398
399 <!-- A2DP Audio HAL -->
400 <module name="a2dp" halVersion="2.0">
401 <mixPorts>
402 <mixPort name="a2dp input" role="sink">
403 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
404 samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
405 </mixPort>
406 </mixPorts>
407
408 <devicePorts>
409 <devicePort tagName="BT A2DP In" type="AUDIO_DEVICE_IN_BLUETOOTH_A2DP" role="source">
410 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
411 samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
412 </devicePort>
413 </devicePorts>
414
415 <routes>
416 <route type="mix" sink="a2dp input"
417 sources="BT A2DP In"/>
418 </routes>
419 </module>
420
421 <!-- Usb Audio HAL -->
422 <module name="usb" halVersion="2.0">
423 <mixPorts>
424 <mixPort name="usb_accessory output" role="source">
425 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
426 samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
427 </mixPort>
428 </mixPorts>
429 <devicePorts>
430 <devicePort tagName="USB Host Out" type="AUDIO_DEVICE_OUT_USB_ACCESSORY" role="sink">
431 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
432 samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
433 </devicePort>
434 </devicePorts>
435 <routes>
436 <route type="mix" sink="USB Host Out"
437 sources="usb_accessory output"/>
438 </routes>
439 </module>
440
441 <!-- Remote Submix Audio HAL -->
442 <xi:include href="/vendor/etc/r_submix_audio_policy_configuration.xml"/>
443
444 </modules>
445 <!-- End of Modules section -->
446
447 <!-- Volume section -->
448
449 <xi:include href="/vendor/etc/audio_policy_volumes.xml"/>
450 <xi:include href="/vendor/etc/default_volume_tables.xml"/>
451
452 <!-- End of Volume section -->
453
454</audioPolicyConfiguration>