diff --git a/.config/wireplumber/wireplumber.conf.d/alsa-vm.conf b/.config/wireplumber/wireplumber.conf.d/alsa-vm.conf new file mode 100644 index 0000000..c7b9693 --- /dev/null +++ b/.config/wireplumber/wireplumber.conf.d/alsa-vm.conf @@ -0,0 +1,23 @@ +# ALSA node property overrides for virtual machine hardware + +monitor.alsa.rules = [ + # Generic PCI cards on any VM type + { + matches = [ + { + node.name = "~alsa_input.pci.*" + cpu.vm.name = "~.*" + } + { + node.name = "~alsa_output.pci.*" + cpu.vm.name = "~.*" + } + ] + actions = { + update-props = { + api.alsa.period-size = 1024 + api.alsa.headroom = 2048 + } + } + } +]