blob: 3776ecfa5feec6e44a234b37de27c86e9378f91a (
plain)
1 pcm.!default {
2 type asym
3 playback.pcm "Monitor"
4 capture.pcm "hw:Loopback,0,0"
5 }
6
7 ctl.!default {
8 type hw
9 card 0
10 }
11
12 pcm.Monitor {
13 type plug
14 slave.pcm mdev
15 route_policy "duplicate"
16 }
17
18 pcm.mdev {
19 type multi
20 slaves.a.pcm pcm.MixPCH
21 slaves.a.channels 2
22 slaves.b.pcm pcm.MixLoopback
23 slaves.b.channels 2
24 bindings.0.slave a
25 bindings.0.channel 0
26 bindings.1.slave a
27 bindings.1.channel 1
28 bindings.2.slave b
29 bindings.2.channel 0
30 bindings.3.slave b
31 bindings.3.channel 1
32 }
33
34 pcm.MixPCH {
35 type dmix
36 ipc_key 1024
37 slave {
38 pcm "hw:0,0,0"
39 rate 48000
40 periods 128
41 period_time 0
42 period_size 1024 # must be power of 2
43 buffer_size 8192
44 }
45 }
46
47 pcm.MixLoopback {
48 type dmix
49 ipc_key 1025
50 slave {
51 pcm "hw:Loopback,1,0"
52 rate 48000
53 periods 128
54 period_time 0
55 period_size 1024 # must be power of 2
56 buffer_size 8192
57 }
58 }
|