Merge pull request #238 from RodoMa92/RodoMa92-microphone-fixes

fix(deck): Fix stuttering volume in microphone
This commit is contained in:
Kyle Gospodnetich 2023-08-31 07:57:10 -07:00 committed by GitHub
commit 64a3288ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2574 additions and 2 deletions

View File

@ -9,11 +9,10 @@ context.modules = [
type = ladspa
name = rnnoise
plugin = /usr/lib64/ladspa/librnnoise_ladspa.so
label = noise_suppressor_mono
label = noise_suppressor_stereo
control = {
"VAD Threshold (%)" = 23.0
"VAD Grace Period (ms)" = 200
"Retroactive VAD Grace (ms)" = 0
}
}
{

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

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

View File

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

File diff suppressed because it is too large Load Diff