blob: e04dac357ea36bc596d4b3cfa6d2a4c87d6ac19d [file] [log] [blame]
merothhd7649fd2022-01-02 20:05:19 +05301<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2<!-- Copyright (c) 2016-2020, 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" call_screen_mode_supported="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_16_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_16_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_MP3"
104 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
105 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
106 <profile name="" format="AUDIO_FORMAT_FLAC"
107 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
108 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
109 <profile name="" format="AUDIO_FORMAT_ALAC"
110 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
111 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"/>
112 <profile name="" format="AUDIO_FORMAT_APE"
113 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
114 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
115 <profile name="" format="AUDIO_FORMAT_AAC_LC"
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_V1"
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_AAC_HE_V2"
122 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
123 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
124 <profile name="" format="AUDIO_FORMAT_DTS"
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"/>
127 <profile name="" format="AUDIO_FORMAT_DTS_HD"
128 samplingRates="32000,44100,48000,64000,88200,96000,128000,176400,192000"
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_WMA"
131 samplingRates="8000,11025,12000,16000,22050,24000,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,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
133 <profile name="" format="AUDIO_FORMAT_WMA_PRO"
134 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
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_VORBIS"
137 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
138 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
139 <profile name="" format="AUDIO_FORMAT_AAC_ADTS_LC"
140 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
141 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
142 <profile name="" format="AUDIO_FORMAT_AAC_ADTS_HE_V1"
143 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
144 channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
145 <profile name="" format="AUDIO_FORMAT_AAC_ADTS_HE_V2"
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 </mixPort>
149 <mixPort name="voice_tx" role="source">
150 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
151 samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
152 </mixPort>
153 <mixPort name="voip_rx" role="source"
154 flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX">
155 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
156 samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
157 </mixPort>
158 <mixPort name="incall_music_uplink" role="source"
159 flags="AUDIO_OUTPUT_FLAG_INCALL_MUSIC">
160 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
161 samplingRates="8000,16000,48000"
162 channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
163 </mixPort>
164
165 <mixPort name="primary input" role="sink" maxOpenCount="2" maxActiveCount="2">
166 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
167 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
168 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
169 </mixPort>
170 <mixPort name="voip_tx" role="sink"
171 flags="AUDIO_INPUT_FLAG_VOIP_TX">
172 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
173 samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
174 </mixPort>
175 <mixPort name="usb_surround_sound" role="sink">
176 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
177 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000"
178 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"/>
179 <profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
180 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000"
181 channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
182 <profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
183 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000"
184 channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
185 </mixPort>
186 <mixPort name="record_24" role="sink" maxOpenCount="2" maxActiveCount="2">
187 <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED"
188 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,96000,192000"
189 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/>
190 <profile name="" format="AUDIO_FORMAT_PCM_8_24_BIT"
191 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,96000,192000"
192 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/>
193 <profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
194 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,96000,192000"
195 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/>
196 </mixPort>
197 <mixPort name="voice_rx" role="sink">
198 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
199 samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
200 </mixPort>
201 <mixPort name="mmap_no_irq_in" role="sink" flags="AUDIO_INPUT_FLAG_MMAP_NOIRQ">
202 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
203 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
204 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3"/>
205 </mixPort>
206 <mixPort name="hifi_input" role="sink" />
207 <mixPort name="fast input" role="sink"
208 flags="AUDIO_INPUT_FLAG_FAST">
209 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
210 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
211 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
212 </mixPort>
213 <mixPort name="quad mic" role="sink">
214 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
215 samplingRates="48000"
216 channelMasks="AUDIO_CHANNEL_INDEX_MASK_4"/>
217 </mixPort>
218 </mixPorts>
219
220 <devicePorts>
221 <!-- Output devices declaration, i.e. Sink DEVICE PORT -->
222 <devicePort tagName="Earpiece" type="AUDIO_DEVICE_OUT_EARPIECE" role="sink">
223 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
224 samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
225 </devicePort>
226 <devicePort tagName="Speaker" role="sink" type="AUDIO_DEVICE_OUT_SPEAKER" address="">
227 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
228 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
229 </devicePort>
230 <devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink">
231 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
232 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
233 </devicePort>
234 <devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink">
235 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
236 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
237 </devicePort>
238 <devicePort tagName="Line" type="AUDIO_DEVICE_OUT_LINE" role="sink">
239 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
240 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
241 </devicePort>
242 <devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
243 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
244 samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
245 </devicePort>
246 <devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink">
247 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
248 samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
249 </devicePort>
250 <devicePort tagName="BT SCO Car Kit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT" role="sink">
251 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
252 samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
253 </devicePort>
254 <devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink">
255 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
256 samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
257 </devicePort>
258 <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink">
259 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
260 samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
261 </devicePort>
262 <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink">
263 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
264 samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
265 </devicePort>
266 <devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink">
267 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
268 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
269 </devicePort>
270 <devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink"
271 encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC AUDIO_FORMAT_CELT AUDIO_FORMAT_APTX_ADAPTIVE AUDIO_FORMAT_APTX_TWSP">
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 encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC AUDIO_FORMAT_CELT AUDIO_FORMAT_APTX_ADAPTIVE AUDIO_FORMAT_APTX_TWSP">
277 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
278 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
279 </devicePort>
280 <devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink"
281 encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC AUDIO_FORMAT_CELT AUDIO_FORMAT_APTX_ADAPTIVE AUDIO_FORMAT_APTX_TWSP">
282 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
283 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
284 </devicePort>
285 <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink">
286 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
287 samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
288 </devicePort>
289 <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink">
290 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
291 samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
292 </devicePort>
293
294 <!-- Input devices declaration, i.e. Source DEVICE PORT -->
295 <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
296 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
297 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
298 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
299 </devicePort>
300 <devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source">
301 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
302 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
303 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
304 </devicePort>
305 <devicePort tagName="FM Tuner" type="AUDIO_DEVICE_IN_FM_TUNER" role="source">
306 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
307 samplingRates="48000"
308 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
309 </devicePort>
310 <devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source">
311 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
312 samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
313 channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
314 </devicePort>
315 <devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source">
316 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
317 samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
318 </devicePort>
319 <devicePort tagName="Telephony Rx" type="AUDIO_DEVICE_IN_TELEPHONY_RX" role="source">
320 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
321 samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
322 </devicePort>
323 <devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source">
324 </devicePort>
325 <devicePort tagName="USB Headset In" type="AUDIO_DEVICE_IN_USB_HEADSET" role="source">
326 </devicePort>
327
328 </devicePorts>
329 <!-- route declaration, i.e. list all available sources for a given sink -->
330 <routes>
331 <route type="mix" sink="Earpiece"
332 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
333 <route type="mix" sink="Speaker"
334 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
335 <route type="mix" sink="Wired Headset"
336 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
337 <route type="mix" sink="Wired Headphones"
338 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
339 <route type="mix" sink="Line"
340 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
341 <route type="mix" sink="HDMI"
342 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,compress_passthrough,voip_rx"/>
343 <route type="mix" sink="Proxy"
344 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload"/>
345 <route type="mix" sink="FM"
346 sources="primary output"/>
347 <route type="mix" sink="BT SCO"
348 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
349 <route type="mix" sink="BT SCO Headset"
350 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
351 <route type="mix" sink="BT SCO Car Kit"
352 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
353 <route type="mix" sink="USB Device Out"
354 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
355 <route type="mix" sink="USB Headset Out"
356 sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
357 <route type="mix" sink="Telephony Tx"
358 sources="voice_tx,incall_music_uplink"/>
359 <route type="mix" sink="voice_rx"
360 sources="Telephony Rx"/>
361 <route type="mix" sink="primary input"
362 sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,FM Tuner,Telephony Rx"/>
363 <route type="mix" sink="usb_surround_sound"
364 sources="USB Device In,USB Headset In"/>
365 <route type="mix" sink="voip_tx"
366 sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic"/>
367 <route type="mix" sink="record_24"
368 sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic"/>
369 <route type="mix" sink="mmap_no_irq_in"
370 sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,USB Device In,USB Headset In"/>
371 <route type="mix" sink="BT A2DP Out"
372 sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
373 <route type="mix" sink="BT A2DP Headphones"
374 sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
375 <route type="mix" sink="BT A2DP Speaker"
376 sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
377 <route type="mix" sink="hifi_input" sources="USB Device In,USB Headset In" />
378 <route type="mix" sink="fast input"
379 sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic"/>
380 <route type="mix" sink="quad mic"
381 sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic"/>
382 </routes>
383
384 </module>
385
386 <!-- A2DP Audio HAL -->
387 <module name="a2dp" halVersion="2.0">
388 <mixPorts>
389 <mixPort name="a2dp input" role="sink">
390 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
391 samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
392 </mixPort>
393 </mixPorts>
394
395 <devicePorts>
396 <devicePort tagName="BT A2DP In" type="AUDIO_DEVICE_IN_BLUETOOTH_A2DP" role="source">
397 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
398 samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
399 </devicePort>
400 </devicePorts>
401
402 <routes>
403 <route type="mix" sink="a2dp input"
404 sources="BT A2DP In"/>
405 </routes>
406 </module>
407
408 <!-- Usb Audio HAL -->
409 <module name="usb" halVersion="2.0">
410 <mixPorts>
411 <mixPort name="usb_accessory output" role="source">
412 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
413 samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
414 </mixPort>
415 </mixPorts>
416 <devicePorts>
417 <devicePort tagName="USB Host Out" type="AUDIO_DEVICE_OUT_USB_ACCESSORY" role="sink">
418 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
419 samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
420 </devicePort>
421 </devicePorts>
422 <routes>
423 <route type="mix" sink="USB Host Out"
424 sources="usb_accessory output"/>
425 </routes>
426 </module>
427
428 <!-- Remote Submix Audio HAL -->
429 <xi:include href="/vendor/etc/r_submix_audio_policy_configuration.xml"/>
430
431 <!-- Bluetooth Audio HAL for hearing aid -->
432 <xi:include href="/vendor/etc/bluetooth_qti_hearing_aid_audio_policy_configuration.xml"/>
433
434 </modules>
435 <!-- End of Modules section -->
436
437 <!-- Volume section -->
438
439 <xi:include href="/vendor/etc/audio_policy_volumes.xml"/>
440 <xi:include href="/vendor/etc/default_volume_tables.xml"/>
441
442 <!-- End of Volume section -->
443
444</audioPolicyConfiguration>