• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Configuration for the virtual loopback driver (snd-aloop)
3#
4
5<confdir:pcm/front.conf>
6
7Loopback.pcm.front.0 {
8	@args [ CARD ]
9	@args.CARD {
10		type string
11	}
12	type softvol
13	slave.pcm {
14		type hw
15		card $CARD
16	}
17	control {
18		name "PCM Playback Volume"
19		card $CARD
20	}
21}
22
23# default with dmix+softvol & dsnoop
24Loopback.pcm.default {
25	@args [ CARD ]
26	@args.CARD {
27		type string
28	}
29	type asym
30	playback.pcm {
31		type plug
32		slave.pcm {
33			type softvol
34			slave.pcm {
35				@func concat
36				strings [ "dmix:" $CARD ]
37			}
38			control {
39				name "PCM Playback Volume"
40				card $CARD
41			}
42		}
43	}
44	capture.pcm {
45		type plug
46		slave.pcm {
47			type softvol
48			slave.pcm {
49				@func concat
50				strings [ "dsnoop:" $CARD ]
51			}
52			control {
53				name "Digital Capture Volume"
54				card $CARD
55			}
56			min_dB -30.0
57			max_dB 30.0
58			resolution 121
59		}
60		# to avoid possible phase inversions with digital mics
61		route_policy copy
62	}
63	hint.device 0
64}
65
66<confdir:pcm/surround21.conf>
67<confdir:pcm/surround40.conf>
68<confdir:pcm/surround41.conf>
69<confdir:pcm/surround50.conf>
70<confdir:pcm/surround51.conf>
71<confdir:pcm/surround71.conf>
72
73Loopback.pcm.surround40.0 cards.Loopback.pcm.front.0
74Loopback.pcm.surround51.0 cards.Loopback.pcm.front.0
75Loopback.pcm.surround71.0 cards.Loopback.pcm.front.0
76