/
nvaudio_conf.xml
executable file
·321 lines (289 loc) · 10.5 KB
/
nvaudio_conf.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2015-2016 NVIDIA Corporation. All Rights Reserved.
NVIDIA Corporation and its licensors retain all intellectual property and
proprietary rights in and to this software and related documentation. Any
use, reproduction, disclosure or distribution of this software and related
documentation without an express license agreement from NVIDIA Corporation
is strictly prohibited.
*/
-->
<AudioConfigs version="2">
<card name="tegrart5639">
<pcm_config name="music-playback"
device_id="0"
rate="48000"
channels="2"
bps="16"
period_size="512"
period_count="4"
start_threshold="127"
stop_threshold="-1"
silence_threshold="0"
silence_size="-1"
avail_min="1"/>
<pcm_config name="music-capture"
device_id="0"
rate="48000"
channels="2"
bps="16"
period_size="1024"
period_count="4"
start_threshold="1"
stop_threshold="4096"
silence_threshold="0"
avail_min="1"/>
<pcm_config name="fast-capture"
device_id="0"
rate="48000"
channels="2"
bps="16"
period_size="128"
period_count="4"
start_threshold="1"
stop_threshold="512"
silence_threshold="0"
avail_min="1"/>
<pcm_config name="bt-sco-playback"
device_id="2"
rate="8000"
channels="1"
bps="16"
period_size="128"
period_count="4"
start_threshold="511"
stop_threshold="512"
silence_threshold="0"
avail_min="1"/>
<pcm_config name="bt-sco-capture"
device_id="2"
rate="8000"
channels="1"
bps="16"
period_size="128"
period_count="4"
start_threshold="511"
stop_threshold="512"
silence_threshold="0"
avail_min="1"/>
<pcm_config name="voice-call-playback"
device_id="3"
rate="16000"
channels="2"
bps="16"
period_size="1024"
period_count="4"
start_threshold="4095"
stop_threshold="4096"
silence_threshold="0"
avail_min="1"/>
<pcm_config name="voice-call-capture"
device_id="3"
rate="16000"
channels="2"
bps="16"
period_size="1024"
period_count="4"
start_threshold="4095"
stop_threshold="4096"
silence_threshold="0"
avail_min="1"/>
<pcm_config name="bt-voice-call-playback"
device_id="4"
channels="1"
rate="8000"
bps="16"
period_size="256"
period_count="4"
start_threshold="1023"
stop_threshold="1024"
silence_threshold="0"
avail_min="1"/>
<pcm_config name="bt-voice-call-capture"
device_id="4"
channels="1"
rate="8000"
bps="16"
period_size="256"
period_count="4"
start_threshold="1023"
stop_threshold="1024"
silence_threshold="0"
avail_min="1"/>
<pcm_config name="fast-capture"
device_id="0"
rate="48000"
channels="2"
bps="16"
period_size="128"
period_count="4"
start_threshold="1"
stop_threshold="512"
silence_threshold="0"
avail_min="1"
devices="builtin-mic|headset-mic"/>
<param name="capture-init-silence-dmic" val="60"/>
<param name="capture-init-silence-hsmic" val="100"/>
<param name="nvoice" val="1"/>
<!--Speaker protection flag:
None -> Disable speaker protection
CPU -> CPU based speaker protection-->
<param name="spkprot-flag" val="CPU"/>
<param name="low latency devices" val="headphone|headset|speaker"/>
<param name="low latency period_size" val="128"/>
<!-- reset controls -->
<ctl name="Int Spk Switch" val="0"/>
<ctl name="Int Mic Switch" val="0"/>
<ctl name="Headphone Jack Switch" val="0"/>
<ctl name="Mic Jack Switch" val="0"/>
<ctl name="Codec VMixer Codec Switch" val="1"/>
<ctl name="Speaker Playback Volume" val="0x20"/>
<ctl name="HP Playback Volume" val="0x1e"/>
<ctl name="SPK MIXR DAC R1 Switch" val="1"/>
<ctl name="Stereo ADC MIXL ADC1 Switch" val="0"/>
<ctl name="Stereo ADC MIXR ADC1 Switch" val="0"/>
<ctl name="Stereo ADC MIXL ADC2 Switch" val="0"/>
<ctl name="Stereo ADC MIXR ADC2 Switch" val="0"/>
<ctl name="ADC Boost Gain" val="0"/>
<ctl name="RECMIXL BST1 Switch" val="0"/>
<ctl name="RECMIXR BST1 Switch" val="0"/>
<ctl name="RECMIXL BST2 Switch" val="0"/>
<ctl name="RECMIXR BST2 Switch" val="0"/>
<ctl name="ADC IF1 Data Switch" val="Normal"/>
<ctl name="ADC Capture Volume" val="0x2f"/>
<at node="/dev/ttyACM2" cmd="at%iapvc=" val="0"/>
<ctl name="Call Mode Switch" val="0"/>
<!-- routing specific controls -->
<path name="speaker">
<ctl name="SPK MIXR DAC R1 Switch" val="1"/>
<ctl name="Int Spk Switch" val="1"/>
</path>
<path name="headphone">
<ctl name="Headphone Jack Switch" val="1"/>
</path>
<path name="headset">
<path name="headphone"/>
</path>
<path name="earpiece">
<ctl name="SPK MIXR DAC R1 Switch" val="0"/>
<ctl name="Int Spk Switch" val="1"/>
<ctl name="Speaker Playback Volume" val="0x11"/>
</path>
<path name="speaker-and-headphone">
<path name="speaker"/>
<path name="headphone"/>
</path>
<path name="speaker-and-headset">
<path name="speaker-and-headphone"/>
</path>
<path name="builtin-mic">
<ctl name="Stereo ADC L2 Mux" val="DMIC1"/>
<ctl name="Stereo ADC R2 Mux" val="DMIC1"/>
<ctl name="Stereo ADC MIXL ADC1 Switch" val="0"/>
<ctl name="Stereo ADC MIXR ADC1 Switch" val="0"/>
<ctl name="Stereo ADC MIXL ADC2 Switch" val="1"/>
<ctl name="Stereo ADC MIXR ADC2 Switch" val="1"/>
<ctl name="ADC Boost Gain" val="2"/>
<ctl name="DMIC Switch" val="DMIC1"/>
<ctl name="Int Mic Switch" val="1"/>
</path>
<path name="headset-mic">
<ctl name="ADC Capture Switch" val="1"/>
<ctl name="RECMIXL BST1 Switch" val="0"/>
<ctl name="RECMIXR BST1 Switch" val="0"/>
<ctl name="RECMIXL BST2 Switch" val="1"/>
<ctl name="RECMIXR BST2 Switch" val="1"/>
<ctl name="Stereo ADC L1 Mux" val="ADC"/>
<ctl name="Stereo ADC R1 Mux" val="ADC"/>
<ctl name="Stereo ADC MIXL ADC1 Switch" val="1"/>
<ctl name="Stereo ADC MIXR ADC1 Switch" val="1"/>
<ctl name="Stereo ADC MIXL ADC2 Switch" val="0"/>
<ctl name="Stereo ADC MIXR ADC2 Switch" val="0"/>
<ctl name="IN2 Mode Control" val="Single ended"/>
<ctl name="IN2 Boost" val="1"/>
<ctl name="Mic Jack Switch" val="1"/>
</path>
<path name="voice-call-earpiece">
<ctl name="Call Mode Switch" val="1"/>
<ctl name="SPK MIXR DAC R1 Switch" val="0"/>
<at node="/dev/ttyACM2" cmd="at%iaudcnf=" val="0"/>
<at node="/dev/ttyACM2" cmd="at%iapvc=" val="1"/>
<ctl name="Int Spk Switch" val="1"/>
<ctl name="Speaker Playback Volume" val="0x11"/>
</path>
<path name="voice-call-speaker">
<ctl name="Call Mode Switch" val="1"/>
<ctl name="SPK MIXR DAC R1 Switch" val="0"/>
<at node="/dev/ttyACM2" cmd="at%iaudcnf=" val="2"/>
<at node="/dev/ttyACM2" cmd="at%iapvc=" val="1"/>
<ctl name="Int Spk Switch" val="1"/>
<ctl name="Speaker Playback Volume" val="0x1e"/>
</path>
<path name="voice-call-builtin-mic">
<ctl name="Stereo ADC L2 Mux" val="DMIC1"/>
<ctl name="Stereo ADC R2 Mux" val="DMIC1"/>
<ctl name="Stereo ADC MIXL ADC1 Switch" val="0"/>
<ctl name="Stereo ADC MIXR ADC1 Switch" val="0"/>
<ctl name="Stereo ADC MIXL ADC2 Switch" val="1"/>
<ctl name="Stereo ADC MIXR ADC2 Switch" val="1"/>
<ctl name="ADC Boost Gain" val="2"/>
<ctl name="DMIC Switch" val="DMIC1"/>
<ctl name="ADC Capture Volume" val="0x5F"/>
<ctl name="Int Mic Switch" val="1"/>
</path>
<path name="voip-speaker">
<ctl name="SPK MIXR DAC R1 Switch" val="0"/>
<ctl name="Int Spk Switch" val="1"/>
</path>
</card>
<card name="Tegra">
<pcm_config name="hdmi-playback"
device_id="3"
rate="48000"
channels="2"
bps="16"
period_size="512"
period_count="8"
start_threshold="4095"
stop_threshold="-1"
silence_threshold="0"
silence_size="-1"
avail_min="1"/>
<param name="HDMI HW Latency" val="50"/>
</card>
<card name="dummy">
<pcm_config name="rsubmix-playback"
rate="48000"
channels="2"
bps="16"
period_size="512"
period_count="4"/>
<pcm_config name="rsubmix-capture"
rate="48000"
channels="2"
bps="16"
period_size="512"
period_count="4"/>
</card>
<card name="dummy">
<pcm_config name="usb-blake-playback"
rate="32000"
channels="2"
bps="16"
period_size="512"
period_count="2"
start_threshold="1023"
stop_threshold="-1"
silence_threshold="0"
silence_size="-1"
avail_min="1"/>
<pcm_config name="usb-blake-capture"
rate="16000"
channels="1"
bps="16"
period_size="512"
period_count="2"
start_threshold="1023"
stop_threshold="1024"
avail_min="1"/>
</card>
</AudioConfigs>