mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 02:51:54 -05:00
legion/go: add mic audio fix for hdmi
This commit is contained in:
parent
8ec6b664ff
commit
63b33bbedf
|
@ -47,6 +47,40 @@ in {
|
||||||
logind.killUserProcesses = true;
|
logind.killUserProcesses = true;
|
||||||
|
|
||||||
pipewire.wireplumber.configPackages = [
|
pipewire.wireplumber.configPackages = [
|
||||||
|
(pkgs.writeTextDir "share/pipewire/pipewire.conf.d/11-mic-hdmi-audio.conf" ''
|
||||||
|
# Mix + HDMI audio fixes
|
||||||
|
monitor.alsa.rules = [
|
||||||
|
{
|
||||||
|
matches = [
|
||||||
|
{
|
||||||
|
node.name = "alsa_input.pci-0000_c2_00.6.analog-stereo"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
actions = {
|
||||||
|
update-props = {
|
||||||
|
priority.driver = 8901
|
||||||
|
priority.session = 8901
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
monitor.alsa.rules = [
|
||||||
|
{
|
||||||
|
matches = [
|
||||||
|
{
|
||||||
|
node.name = "alsa_output.pci-0000_c2_00.1.hdmi-stereo"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
actions = {
|
||||||
|
update-props = {
|
||||||
|
priority.driver = 1010
|
||||||
|
priority.session = 1010
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
'')
|
||||||
(pkgs.writeTextDir "share/pipewire/pipewire.conf.d/10-legion-go-convolver.conf" ''
|
(pkgs.writeTextDir "share/pipewire/pipewire.conf.d/10-legion-go-convolver.conf" ''
|
||||||
# Convolver Configuration for Pipewire
|
# Convolver Configuration for Pipewire
|
||||||
#
|
#
|
||||||
|
@ -87,7 +121,7 @@ in {
|
||||||
node.autoconnect = true
|
node.autoconnect = true
|
||||||
media.class = "Audio/Sink"
|
media.class = "Audio/Sink"
|
||||||
priority.driver = 1000
|
priority.driver = 1000
|
||||||
priority.session = 2000
|
priority.session = 1001
|
||||||
audio.channels = 2
|
audio.channels = 2
|
||||||
audio.position = [ FL FR ]
|
audio.position = [ FL FR ]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue