Add a fix from SteamOS for audio stuttering on Deck

This commit is contained in:
Marco Rodolfi 2023-08-31 11:36:58 +02:00 committed by GitHub
parent 99e85a54e5
commit 530f69a304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}
})