Add Loopback.conf to define standard PCM devices for snd-aloop driver
authorJaroslav Kysela <perex@perex.cz>
Wed, 25 Aug 2010 07:04:51 +0000 (09:04 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 25 Aug 2010 07:04:51 +0000 (09:04 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

src/conf/cards/Loopback.conf [new file with mode: 0644]

diff --git a/src/conf/cards/Loopback.conf b/src/conf/cards/Loopback.conf
new file mode 100644 (file)
index 0000000..05c48c6
--- /dev/null
@@ -0,0 +1,74 @@
+#
+# Configuration for the Intel HD audio (ICH6/ICH7)
+#
+
+<confdir:pcm/front.conf>
+
+Loopback.pcm.front.0 {
+       @args [ CARD ]
+       @args.CARD {
+               type string
+       }
+       type softvol
+       slave.pcm {
+               type hw
+               card $CARD
+       }
+       control {
+               name "PCM Playback Volume"
+               card $CARD
+       }
+}      
+
+# default with dmix+softvol & dsnoop
+Loopback.pcm.default {
+       @args [ CARD ]
+       @args.CARD {
+               type string
+       }
+       type asym
+       playback.pcm {
+               type plug
+               slave.pcm {
+                       type softvol
+                       slave.pcm {
+                               @func concat
+                               strings [ "dmix:" $CARD ]
+                       }
+                       control {
+                               name "PCM Playback Volume"
+                               card $CARD
+                       }
+               }
+       }
+       capture.pcm {
+               type plug
+               slave.pcm {
+                       type softvol
+                       slave.pcm {
+                               @func concat
+                               strings [ "dsnoop:" $CARD ]
+                       }
+                       control {
+                               name "Digital Capture Volume"
+                               card $CARD
+                       }
+                       min_dB -30.0
+                       max_dB 30.0
+                       resolution 121
+               }
+               # to avoid possible phase inversions with digital mics
+               route_policy copy
+       }
+       hint.device 0
+}
+
+<confdir:pcm/surround40.conf>
+<confdir:pcm/surround41.conf>
+<confdir:pcm/surround50.conf>
+<confdir:pcm/surround51.conf>
+<confdir:pcm/surround71.conf>
+
+Loopback.pcm.surround40.0 cards.HDA-Intel.pcm.front.0
+Loopback.pcm.surround51.0 cards.HDA-Intel.pcm.front.0
+Loopback.pcm.surround71.0 cards.HDA-Intel.pcm.front.0