summaryrefslogtreecommitdiffstats
path: root/.alsa
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2018-07-01 10:32:38 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2018-07-01 10:32:38 +0200
commit5ded08bc3e3baf72563e49e5d5f8eb3daa36d2e7 (patch)
treec339ef35f0bda9079b05142733662f8ae1e421ed /.alsa
parent0c5294e80f9c07a81ef23cca0807beae28170cf5 (diff)
Added ALSA config files for the desktop to support changing output dynamically, including software mixing for the USB audio card
Diffstat (limited to '.alsa')
-rw-r--r--.alsa/desktop-pch14
-rw-r--r--.alsa/desktop-usb12
2 files changed, 26 insertions, 0 deletions
diff --git a/.alsa/desktop-pch b/.alsa/desktop-pch
new file mode 100644
index 0000000..fe0048c
--- /dev/null
+++ b/.alsa/desktop-pch
@@ -0,0 +1,14 @@
+# map default output to hardware card 1, device 0 (analog)
+pcm.!default {
+ type hw
+ card 1
+ device 0
+}
+
+# same for the controls (alsamixer)
+ctl.!default {
+ type hw
+ card 1
+ device 0
+}
+
diff --git a/.alsa/desktop-usb b/.alsa/desktop-usb
new file mode 100644
index 0000000..571e21c
--- /dev/null
+++ b/.alsa/desktop-usb
@@ -0,0 +1,12 @@
+# map default to dmixer virtual thingie (device?)
+pcm.!default plug:dmixer
+
+# do software mixing and output to slave hardware device (USB)
+pcm.dmixer {
+ type dmix
+ ipc_key 1024
+ slave {
+ pcm "hw:0,0"
+ }
+}
+