From 530f69a3048e2e357f65916cbe1aa8b974b8d2f8 Mon Sep 17 00:00:00 2001 From: Marco Rodolfi Date: Thu, 31 Aug 2023 11:36:58 +0200 Subject: [PATCH] Add a fix from SteamOS for audio stuttering on Deck --- .../main.lua.d/60-alsa-acp5x-config.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 system_files/deck/shared/etc/wireplumber/main.lua.d/60-alsa-acp5x-config.lua diff --git a/system_files/deck/shared/etc/wireplumber/main.lua.d/60-alsa-acp5x-config.lua b/system_files/deck/shared/etc/wireplumber/main.lua.d/60-alsa-acp5x-config.lua new file mode 100644 index 00000000..c938af4f --- /dev/null +++ b/system_files/deck/shared/etc/wireplumber/main.lua.d/60-alsa-acp5x-config.lua @@ -0,0 +1,19 @@ +--ACP5X card hardware never hibernates, so remove the pops and lags. + +table.insert (alsa_monitor.rules, { + matches = { + { + -- Matches all sources from card acp5x + { "node.name", "matches", "alsa_input.*" }, + { "alsa.card_name", "matches", "acp5x" }, + }, + { + -- Matches all sinks from card acp5x + { "node.name", "matches", "alsa_output.*" }, + { "alsa.card_name", "matches", "acp5x" }, + }, + }, + apply_properties = { + ["session.suspend-timeout-seconds"] = 0, + } +})