mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 23:31:55 -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;
|
||||
|
||||
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" ''
|
||||
# Convolver Configuration for Pipewire
|
||||
#
|
||||
|
@ -87,7 +121,7 @@ in {
|
|||
node.autoconnect = true
|
||||
media.class = "Audio/Sink"
|
||||
priority.driver = 1000
|
||||
priority.session = 2000
|
||||
priority.session = 1001
|
||||
audio.channels = 2
|
||||
audio.position = [ FL FR ]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue