Debian Codegraph @

src/modules/alsa/mixer/profile-sets/texas-instruments-pcm2902.conf

raw
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 ; Texas Instruments PCM2902
17 ;
18 ; This is a generic chip used in multiple products, including at least
19 ; Behringer U-Phoria UMC22, Behringer Xenyx 302USB, Intopic Jazz-UB700 and
20 ; some unbranded "usb mini microphone".
21 ;
22 ; Behringer UMC22 has stereo input (representing two physical mono inputs),
23 ; others have mono input.
24 ;
25 ; Some devices have a mic input path, but at least Behringer Xenyx 302USB
26 ; doesn't have any input mixer controls.
27 ;
28 ; Since the UMC22 card has only stereo input PCM device but is commonly used
29 ; with mono mics, we define special mono mappings using "mono,aux1" and
30 ; "aux1,mono" channel maps. If we had only had the standard stereo input
31 ; mapping, the user would have to record stereo tracks with one channel silent,
32 ; which would be inconvenient.
33 ;
34 ; This config also removes default digital input/output mappings that do
35 ; not physically exist on cards that we've seen so far.
36 ;
37 ; Originally added by Nazar Mokrynskyi <[email protected]> for Behringer
38 ; UMC22.
39
40 [General]
41 auto-profiles = yes
42
43 [Mapping analog-stereo-input]
44 device-strings = hw:%f
45 channel-map = left,right
46 paths-input = analog-input-mic analog-input
47 direction = input
48 priority = 4
49
50 [Mapping analog-mono]
51 device-strings = hw:%f
52 channel-map = mono
53 paths-input = analog-input-mic analog-input
54 direction = input
55 priority = 3
56
57 [Mapping analog-mono-left]
58 device-strings = hw:%f
59 channel-map = mono,aux1
60 paths-input = analog-input-mic analog-input
61 direction = input
62 priority = 2
63
64 [Mapping analog-mono-right]
65 device-strings = hw:%f
66 channel-map = aux1,mono
67 paths-input = analog-input-mic analog-input
68 direction = input
69 priority = 1
70
71 [Mapping analog-stereo-output]
72 device-strings = front:%f
73 channel-map = left,right
74 paths-output = analog-output
75 direction = output