]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Put alsa config into repo
authorMaximilian Friedersdorff <maxf130@gmail.com>
Sat, 7 May 2016 10:26:04 +0000 (11:26 +0100)
committerMaximilian Friedersdorff <maxf130@gmail.com>
Sat, 7 May 2016 10:26:04 +0000 (11:26 +0100)
alsa-hydrogen/.asoundrc [new file with mode: 0644]

diff --git a/alsa-hydrogen/.asoundrc b/alsa-hydrogen/.asoundrc
new file mode 100644 (file)
index 0000000..429da1a
--- /dev/null
@@ -0,0 +1,80 @@
+pcm.!default{
+       type plug
+       slave.pcm "both"
+}
+
+ctl.!default {
+            type hw
+            card 0
+}
+
+
+
+pcm.both {
+        type route;
+        slave.pcm {
+                  type multi;
+                  slaves.a.pcm "optical"
+                  slaves.b.pcm "analogue"
+                  slaves.a.channels 2;
+                  slaves.b.channels 2;
+                  bindings.0.slave a;
+                  bindings.0.channel 0;
+                  bindings.1.slave a;
+                  bindings.1.channel 1;
+
+                  bindings.2.slave b;
+                  bindings.2.channel 0;
+                  bindings.3.slave b;
+                  bindings.3.channel 1;
+        }
+        ttable.0.0 1;
+        ttable.1.1 1;
+        ttable.0.2 1;
+        ttable.1.3 1;
+}
+
+ctl.both {
+        type hw;
+        card 0;
+}
+
+pcm.optical {
+       type dmix
+       ipc_key 1024
+       slave {
+             pcm "hw:0,1"
+             period_time 0
+             period_size 1024
+             buffer_size 4096
+       }
+       bindings {
+             0 0
+             1 1
+       }
+}
+
+pcm.analogue {
+       type dmix
+       ipc_key 1024
+       slave {
+             pcm "hw:0,0"
+             period_time 0
+             period_size 1024
+             buffer_size 4096
+       }
+       bindings {
+             0 0
+             1 1
+       }
+}
+
+ctl.optical {
+       type hw
+       card 0
+}
+
+ctl.analogue {
+       type hw
+       card 0
+}
\ No newline at end of file