2023-06-01 09:39:29 +00:00
|
|
|
-- PipeWire's S24LE default audio format is broken in the kernel driver
|
|
|
|
table.insert(alsa_monitor.rules,
|
|
|
|
{
|
|
|
|
matches = {
|
|
|
|
{
|
|
|
|
{ "node.name", "matches", "alsa_output.*.HiFi*__sink" },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{ "node.name", "matches", "alsa_input.*.HiFi*__source" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
apply_properties = {
|
|
|
|
["audio.format"] = "S16LE",
|
2023-06-17 07:58:50 +00:00
|
|
|
["audio.rate"] = 48000,
|
|
|
|
["api.alsa.period-size"] = 4096,
|
|
|
|
["api.alsa.period-num"] = 6,
|
|
|
|
["api.alsa.headroom"] = 512,
|
2023-06-01 09:39:29 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
-- Disable suspend for Voice Call devices
|
|
|
|
table.insert(alsa_monitor.rules,
|
|
|
|
{
|
2024-04-05 13:31:49 +00:00
|
|
|
matches = {
|
|
|
|
{
|
|
|
|
{ "node.name", "matches", "alsa_output.*.Voice_Call*__sink" },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{ "node.name", "matches", "alsa_input.*.Voice_Call*__source" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
apply_properties = {
|
|
|
|
["audio.format"] = "S16LE",
|
2023-06-01 09:39:29 +00:00
|
|
|
["session.suspend-timeout-seconds"] = 0,
|
2024-04-05 13:31:49 +00:00
|
|
|
},
|
2023-06-01 09:39:29 +00:00
|
|
|
}
|
|
|
|
)
|