Skip to content

Instantly share code, notes, and snippets.

@Trogious
Created March 9, 2024 19:14
Show Gist options
  • Save Trogious/42452bb90515f09c9940e9c760c32e10 to your computer and use it in GitHub Desktop.
Save Trogious/42452bb90515f09c9940e9c760c32e10 to your computer and use it in GitHub Desktop.
Pipewire channels configuration
-- /etc/wireplumber/main.lua.d/51-alsa-multichannelAudioInterface.lua
rule = {
matches = {
{
{ "node.name", "matches", "alsa_input.usb-Generic_USB_Audio-00.HiFi_5_1__hw_Audio__sink" },
},
{
{ "node.name", "matches", "alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__hw_Audio__sink" },
},
},
apply_properties = {
["audio.channels"] = 6,
["audio.position"] = "FL,FR,FC,LFE,RL,RR",
["api.alsa.period-size"] = 1024,
["api.alsa.period-num"] = 32,
},
}
table.insert(alsa_monitor.rules, rule)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment