| 1 |
# ALSA node property overrides for virtual machine hardware |
| 2 |
|
| 3 |
monitor.alsa.rules = [ |
| 4 |
# Generic PCI cards on any VM type |
| 5 |
{ |
| 6 |
matches = [ |
| 7 |
{ |
| 8 |
node.name = "~alsa_input.pci.*" |
| 9 |
cpu.vm.name = "~.*" |
| 10 |
} |
| 11 |
{ |
| 12 |
node.name = "~alsa_output.pci.*" |
| 13 |
cpu.vm.name = "~.*" |
| 14 |
} |
| 15 |
] |
| 16 |
actions = { |
| 17 |
update-props = { |
| 18 |
api.alsa.period-size = 1024 |
| 19 |
api.alsa.headroom = 2048 |
| 20 |
} |
| 21 |
} |
| 22 |
}, |
| 23 |
# VMware & VirtualBox on Windows hosts require more headroom to |
| 24 |
# avoid stuttering. |
| 25 |
{ |
| 26 |
matches = [ |
| 27 |
{ |
| 28 |
node.name = "~alsa_input.pci.*" |
| 29 |
cpu.vm.name = "~^(vmware)|(oracle)$" |
| 30 |
} |
| 31 |
{ |
| 32 |
node.name = "~alsa_output.pci.*" |
| 33 |
cpu.vm.name = "~^(vmware)|(oracle)$" |
| 34 |
} |
| 35 |
] |
| 36 |
actions = { |
| 37 |
update-props = { |
| 38 |
api.alsa.period-size = 1024 |
| 39 |
api.alsa.headroom = 8192 |
| 40 |
} |
| 41 |
} |
| 42 |
} |
| 43 |
] |