CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/packages/blobs/sunxi/h616/pulseaudio/default.conf
Views: 3963
1
# This file is part of PulseAudio.
2
#
3
# PulseAudio is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU Lesser General Public License as
5
# published by the Free Software Foundation; either version 2.1 of the
6
# License, or (at your option) any later version.
7
#
8
# PulseAudio is distributed in the hope that it will be useful, but
9
# WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
# General Public License for more details.
12
#
13
# You should have received a copy of the GNU Lesser General Public License
14
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
15
16
; Default profile definitions for the ALSA backend of PulseAudio. This
17
; is used as fallback for all cards that have no special mapping
18
; assigned (and should be good enough for the vast majority of
19
; cards). If you want to assign a different profile set than this one
20
; to a device, either set the udev property PULSE_PROFILE_SET for the
21
; card, or use the "profile_set" module argument when loading
22
; module-alsa-card.
23
;
24
; So what is this about? Simply, what we do here is map ALSA devices
25
; to how they are exposed in PA. We say which ALSA device string to
26
; use to open a device, which channel mapping to use then, and which
27
; mixer path to use. This is encoded in a 'mapping'. Multiple of these
28
; mappings can be bound together in a 'profile' which is then directly
29
; exposed in the UI as a card profile. Each mapping assigned to a
30
; profile will result in one sink/source to be created if the profile
31
; is selected for the card.
32
;
33
; Additionally, the path set configuration files can describe the
34
; decibel values assigned to the steps of the volume elements. This
35
; can be used to work around situations when the alsa driver doesn't
36
; provide any decibel information, or when the information is
37
; incorrect.
38
39
40
; [General]
41
; auto-profiles = no | yes # Instead of defining all profiles manually, autogenerate
42
; # them by combining every input mapping with every output mapping.
43
;
44
; [Mapping id]
45
; device-strings = ... # ALSA device string. %f will be replaced by the card identifier.
46
; channel-map = ... # Channel mapping to use for this device
47
; description = ...
48
; paths-input = ... # A list of mixer paths to use. Every path in this list will be probed.
49
; # If multiple are found to be working they will be available as device ports
50
; paths-output = ...
51
; element-input = ... # Instead of configuring a full mixer path simply configure a single
52
; # mixer element for volume/mute handling
53
; element-output = ...
54
; priority = ...
55
; direction = any | input | output # Only useful for?
56
;
57
; exact-channels = yes | no # If no, and the exact number of channels is not supported,
58
; # allow device to be opened with another channel count
59
; fallback = no | yes # This mapping will only be considered if all non-fallback mappings fail
60
; [Profile id]
61
; input-mappings = ... # Lists mappings for sources on this profile, those mapping must be
62
; # defined in this file too
63
; output-mappings = ... # Lists mappings for sinks on this profile, those mappings must be
64
; # defined in this file too
65
; description = ...
66
; priority = ... # Numeric value to deduce priority for this profile
67
; skip-probe = no | yes # Skip probing for availability? If this is yes then this profile
68
; # will be assumed as working without probing. Makes initialization
69
; # a bit faster but only works if the card is really known well.
70
;
71
; fallback = no | yes # This profile will only be considered if all non-fallback profiles fail
72
; [DecibelFix element] # Decibel fixes can be used to work around missing or incorrect dB
73
; # information from alsa. A decibel fix is a table that maps volume steps
74
; # to decibel values for one volume element. The "element" part in the
75
; # section title is the name of the volume element.
76
; #
77
; # NOTE: This feature is meant just as a help for figuring out the correct
78
; # decibel values. PulseAudio is not the correct place to maintain the
79
; # decibel mappings!
80
; #
81
; # If you need this feature, then you should make sure that when you have
82
; # the correct values figured out, the alsa driver developers get informed
83
; # too, so that they can fix the driver.
84
;
85
; db-values = ... # The option value consists of pairs of step numbers and decibel values.
86
; # The pairs are separated with whitespace, and steps are separated from
87
; # the corresponding decibel values with a colon. The values must be in an
88
; # increasing order. Here's an example of a valid string:
89
; #
90
; # "0:-40.50 1:-38.70 3:-33.00 11:0"
91
; #
92
; # The lowest step imposes a lower limit for hardware volume and the
93
; # highest step correspondingly imposes a higher limit. That means that
94
; # that the mixer will never be set outside those values - the rest of the
95
; # volume scale is done using software volume.
96
; #
97
; # As can be seen in the example, you don't need to specify a dB value for
98
; # each step. The dB values for skipped steps will be linearly interpolated
99
; # using the nearest steps that are given.
100
101
[General]
102
auto-profiles = no
103
104
[Mapping analog-mono]
105
device-strings = hw:%f
106
channel-map = mono
107
paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2 analog-output-mono
108
paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headset-mic
109
priority = 2
110
111
[Mapping analog-stereo]
112
device-strings = front:%f
113
channel-map = left,right
114
paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2
115
paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headphone-mic analog-input-headset-mic
116
priority = 10
117
118
# If everything else fails, try to use hw:0 as a stereo device.
119
[Mapping stereo-fallback]
120
device-strings = hw:%f
121
fallback = yes
122
channel-map = front-left,front-right
123
paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2
124
paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headphone-mic analog-input-headset-mic
125
priority = 1
126
127
[Mapping analog-surround-21]
128
device-strings = surround21:%f
129
channel-map = front-left,front-right,lfe
130
paths-output = analog-output analog-output-lineout analog-output-speaker
131
priority = 8
132
direction = output
133
134
[Mapping analog-surround-40]
135
device-strings = surround40:%f
136
channel-map = front-left,front-right,rear-left,rear-right
137
paths-output = analog-output analog-output-lineout analog-output-speaker
138
priority = 7
139
direction = output
140
141
[Mapping analog-surround-41]
142
device-strings = surround41:%f
143
channel-map = front-left,front-right,rear-left,rear-right,lfe
144
paths-output = analog-output analog-output-lineout analog-output-speaker
145
priority = 8
146
direction = output
147
148
[Mapping analog-surround-50]
149
device-strings = surround50:%f
150
channel-map = front-left,front-right,rear-left,rear-right,front-center
151
paths-output = analog-output analog-output-lineout analog-output-speaker
152
priority = 7
153
direction = output
154
155
[Mapping analog-surround-51]
156
device-strings = surround51:%f
157
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
158
paths-output = analog-output analog-output-lineout analog-output-speaker
159
priority = 8
160
direction = output
161
162
[Mapping analog-surround-71]
163
device-strings = surround71:%f
164
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
165
description = Analog Surround 7.1
166
paths-output = analog-output analog-output-lineout analog-output-speaker
167
priority = 7
168
direction = output
169
170
[Mapping iec958-stereo]
171
device-strings = iec958:%f
172
channel-map = left,right
173
paths-input = iec958-stereo-input
174
paths-output = iec958-stereo-output
175
priority = 5
176
177
[Mapping iec958-ac3-surround-40]
178
device-strings = a52:%f
179
channel-map = front-left,front-right,rear-left,rear-right
180
paths-output = iec958-stereo-output
181
priority = 2
182
direction = output
183
184
[Mapping iec958-ac3-surround-51]
185
device-strings = a52:%f
186
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
187
paths-output = iec958-stereo-output
188
priority = 3
189
direction = output
190
191
[Mapping iec958-dts-surround-51]
192
device-strings = dca:%f
193
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
194
paths-output = iec958-stereo-output
195
priority = 3
196
direction = output
197
198
[Mapping hdmi-stereo]
199
description = Digital Stereo (HDMI)
200
device-strings = hdmi:%f
201
paths-output = hdmi-output-0
202
channel-map = left,right
203
priority = 4
204
direction = output
205
206
[Mapping hdmi-surround]
207
description = Digital Surround 5.1 (HDMI)
208
device-strings = hdmi:%f
209
paths-output = hdmi-output-0
210
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
211
priority = 3
212
direction = output
213
214
[Mapping hdmi-surround71]
215
description = Digital Surround 7.1 (HDMI)
216
device-strings = hdmi:%f
217
paths-output = hdmi-output-0
218
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
219
priority = 3
220
direction = output
221
222
[Mapping hdmi-dts-surround]
223
description = Digital Surround 5.1 (HDMI/DTS)
224
device-strings = dcahdmi:%f
225
paths-output = hdmi-output-0
226
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
227
priority = 1
228
direction = output
229
230
[Mapping hdmi-stereo-extra1]
231
description = Digital Stereo (HDMI 2)
232
device-strings = hdmi:%f,1
233
paths-output = hdmi-output-1
234
channel-map = left,right
235
priority = 2
236
direction = output
237
238
[Mapping hdmi-surround-extra1]
239
description = Digital Surround 5.1 (HDMI 2)
240
device-strings = hdmi:%f,1
241
paths-output = hdmi-output-1
242
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
243
priority = 1
244
direction = output
245
246
[Mapping hdmi-surround71-extra1]
247
description = Digital Surround 7.1 (HDMI 2)
248
device-strings = hdmi:%f,1
249
paths-output = hdmi-output-1
250
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
251
priority = 1
252
direction = output
253
254
[Mapping hdmi-dts-surround-extra1]
255
description = Digital Surround 5.1 (HDMI 2/DTS)
256
device-strings = dcahdmi:%f,1
257
paths-output = hdmi-output-1
258
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
259
priority = 1
260
direction = output
261
262
[Mapping hdmi-stereo-extra2]
263
description = Digital Stereo (HDMI 3)
264
device-strings = hdmi:%f,2
265
paths-output = hdmi-output-2
266
channel-map = left,right
267
priority = 2
268
direction = output
269
270
[Mapping hdmi-surround-extra2]
271
description = Digital Surround 5.1 (HDMI 3)
272
device-strings = hdmi:%f,2
273
paths-output = hdmi-output-2
274
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
275
priority = 1
276
direction = output
277
278
[Mapping hdmi-surround71-extra2]
279
description = Digital Surround 7.1 (HDMI 3)
280
device-strings = hdmi:%f,2
281
paths-output = hdmi-output-2
282
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
283
priority = 1
284
direction = output
285
286
[Mapping hdmi-dts-surround-extra2]
287
description = Digital Surround 5.1 (HDMI 3/DTS)
288
device-strings = dcahdmi:%f,2
289
paths-output = hdmi-output-2
290
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
291
priority = 1
292
direction = output
293
294
[Mapping hdmi-stereo-extra3]
295
description = Digital Stereo (HDMI 4)
296
device-strings = hdmi:%f,3
297
paths-output = hdmi-output-3
298
channel-map = left,right
299
priority = 2
300
direction = output
301
302
[Mapping hdmi-surround-extra3]
303
description = Digital Surround 5.1 (HDMI 4)
304
device-strings = hdmi:%f,3
305
paths-output = hdmi-output-3
306
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
307
priority = 1
308
direction = output
309
310
[Mapping hdmi-surround71-extra3]
311
description = Digital Surround 7.1 (HDMI 4)
312
device-strings = hdmi:%f,3
313
paths-output = hdmi-output-3
314
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
315
priority = 1
316
direction = output
317
318
[Mapping hdmi-dts-surround-extra3]
319
description = Digital Surround 5.1 (HDMI 4/DTS)
320
device-strings = dcahdmi:%f,3
321
paths-output = hdmi-output-3
322
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
323
priority = 1
324
direction = output
325
326
[Mapping hdmi-stereo-extra4]
327
description = Digital Stereo (HDMI 5)
328
device-strings = hdmi:%f,4
329
paths-output = hdmi-output-4
330
channel-map = left,right
331
priority = 2
332
direction = output
333
334
[Mapping hdmi-surround-extra4]
335
description = Digital Surround 5.1 (HDMI 5)
336
device-strings = hdmi:%f,4
337
paths-output = hdmi-output-4
338
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
339
priority = 1
340
direction = output
341
342
[Mapping hdmi-surround71-extra4]
343
description = Digital Surround 7.1 (HDMI 5)
344
device-strings = hdmi:%f,4
345
paths-output = hdmi-output-4
346
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
347
priority = 1
348
direction = output
349
350
[Mapping hdmi-dts-surround-extra4]
351
description = Digital Surround 5.1 (HDMI 5/DTS)
352
device-strings = dcahdmi:%f,4
353
paths-output = hdmi-output-4
354
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
355
priority = 1
356
direction = output
357
358
[Mapping hdmi-stereo-extra5]
359
description = Digital Stereo (HDMI 6)
360
device-strings = hdmi:%f,5
361
paths-output = hdmi-output-5
362
channel-map = left,right
363
priority = 2
364
direction = output
365
366
[Mapping hdmi-surround-extra5]
367
description = Digital Surround 5.1 (HDMI 6)
368
device-strings = hdmi:%f,5
369
paths-output = hdmi-output-5
370
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
371
priority = 1
372
direction = output
373
374
[Mapping hdmi-surround71-extra5]
375
description = Digital Surround 7.1 (HDMI 6)
376
device-strings = hdmi:%f,5
377
paths-output = hdmi-output-5
378
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
379
priority = 1
380
direction = output
381
382
[Mapping hdmi-dts-surround-extra5]
383
description = Digital Surround 5.1 (HDMI 6/DTS)
384
device-strings = dcahdmi:%f,5
385
paths-output = hdmi-output-5
386
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
387
priority = 1
388
direction = output
389
390
[Mapping hdmi-stereo-extra6]
391
description = Digital Stereo (HDMI 7)
392
device-strings = hdmi:%f,6
393
paths-output = hdmi-output-6
394
channel-map = left,right
395
priority = 2
396
direction = output
397
398
[Mapping hdmi-surround-extra6]
399
description = Digital Surround 5.1 (HDMI 7)
400
device-strings = hdmi:%f,6
401
paths-output = hdmi-output-6
402
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
403
priority = 1
404
direction = output
405
406
[Mapping hdmi-surround71-extra6]
407
description = Digital Surround 7.1 (HDMI 7)
408
device-strings = hdmi:%f,6
409
paths-output = hdmi-output-6
410
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
411
priority = 1
412
direction = output
413
414
[Mapping hdmi-dts-surround-extra6]
415
description = Digital Surround 5.1 (HDMI 7/DTS)
416
device-strings = dcahdmi:%f,6
417
paths-output = hdmi-output-6
418
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
419
priority = 1
420
direction = output
421
422
[Mapping hdmi-stereo-extra7]
423
description = Digital Stereo (HDMI 8)
424
device-strings = hdmi:%f,7
425
paths-output = hdmi-output-7
426
channel-map = left,right
427
priority = 2
428
direction = output
429
430
[Mapping hdmi-surround-extra7]
431
description = Digital Surround 5.1 (HDMI 8)
432
device-strings = hdmi:%f,7
433
paths-output = hdmi-output-7
434
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
435
priority = 1
436
direction = output
437
438
[Mapping hdmi-surround71-extra7]
439
description = Digital Surround 7.1 (HDMI 8)
440
device-strings = hdmi:%f,7
441
paths-output = hdmi-output-7
442
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
443
priority = 1
444
direction = output
445
446
[Mapping hdmi-dts-surround-extra7]
447
description = Digital Surround 5.1 (HDMI 8/DTS)
448
device-strings = dcahdmi:%f,7
449
paths-output = hdmi-output-7
450
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
451
priority = 1
452
direction = output
453
454
[Mapping multichannel-output]
455
device-strings = hw:%f
456
channel-map = left,right,rear-left,rear-right
457
exact-channels = false
458
fallback = yes
459
priority = 1
460
direction = output
461
paths-output = multichannel-output
462
463
[Mapping multichannel-input]
464
device-strings = hw:%f
465
channel-map = left,right,rear-left,rear-right
466
exact-channels = false
467
fallback = yes
468
priority = 1
469
direction = input
470
paths-input = multichannel-input
471
472
; An example for defining multiple-sink profiles
473
#[Profile output:analog-stereo+output:iec958-stereo+input:analog-stereo]
474
#description = Foobar
475
#output-mappings = analog-stereo iec958-stereo
476
#input-mappings = analog-stereo
477
478