Audio part 2

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

View File

@ -0,0 +1,25 @@
-- HDMI output is always plugged in card 0 (HD_Audio Generic)
-- We always give higher priority to nodes from that card
-- Disable suspend timeout for HDMI to remove audio delay after idle
table.insert (alsa_monitor.rules, {
matches = {
{
-- Matches all sources from card HD-Audio Generic
{ "node.name", "matches", "alsa_input.*" },
{ "alsa.card_name", "matches", "HD-Audio Generic" },
},
{
-- Matches all sinks from card HD-Audio Generic
{ "node.name", "matches", "alsa_output.*" },
{ "alsa.card_name", "matches", "HD-Audio Generic" },
},
},
apply_properties = {
["priority.driver"] = 900,
["priority.session"] = 900,
["api.alsa.period-size"] = 256,
["api.alsa.headroom"] = 1024,
["session.suspend-timeout-seconds"] = 0
}
})