Ignore audio from PS controllers audio card

This commit is contained in:
Marco Rodolfi 2023-08-31 11:38:48 +02:00 committed by GitHub
parent 746dadcb59
commit d53f6a734d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,21 @@
-- PS4/PS5 Controller output is always referenced as Wireless Controller
-- We always give the lowest priority to nodes from that card
table.insert (alsa_monitor.rules, {
matches = {
{
-- Matches all sources from card Controller
{ "node.name", "matches", "alsa_input.*" },
{ "alsa.card_name", "matches", "Wireless Controller" },
},
{
-- Matches all sinks from card Wireless Controller
{ "node.name", "matches", "alsa_output.*" },
{ "alsa.card_name", "matches", "Wireless Controller" },
},
},
apply_properties = {
["priority.driver"] = 99,
["priority.session"] = 99,
}
})