From 5ded08bc3e3baf72563e49e5d5f8eb3daa36d2e7 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sun, 1 Jul 2018 10:32:38 +0200 Subject: Added ALSA config files for the desktop to support changing output dynamically, including software mixing for the USB audio card --- .alsa/desktop-pch | 14 ++++++++++++++ .alsa/desktop-usb | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .alsa/desktop-pch create mode 100644 .alsa/desktop-usb (limited to '.alsa') 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" + } +} + -- cgit v1.2.3