From d53f6a734d3c9594eb6e3de15b50ee483811f82f Mon Sep 17 00:00:00 2001 From: Marco Rodolfi Date: Thu, 31 Aug 2023 11:38:48 +0200 Subject: [PATCH] Ignore audio from PS controllers audio card --- .../60-alsa-ps-controller-config.lua | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 system_files/deck/shared/etc/wireplumber/main.lua.d/60-alsa-ps-controller-config.lua diff --git a/system_files/deck/shared/etc/wireplumber/main.lua.d/60-alsa-ps-controller-config.lua b/system_files/deck/shared/etc/wireplumber/main.lua.d/60-alsa-ps-controller-config.lua new file mode 100644 index 00000000..6ae8fae0 --- /dev/null +++ b/system_files/deck/shared/etc/wireplumber/main.lua.d/60-alsa-ps-controller-config.lua @@ -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, + } +})