10.nixos-hardware/asus/proart/px13/hn7306eac/ucm2/codecs/tas2783/init.conf
·𐑑𐑴𐑕𐑑𐑩𐑤 3de9124f07 asus/proart/px13/hn7306eac: init
• fetching audio firmware
• providing a default pipewire config

Hopefully in the future, both of these can be kernel version gated as
everything is mainlined.
2026-06-24 16:07:50 +07:00

42 lines
1.3 KiB
Text

# TAS2783 specific switch control settings
Define.SpeakerMixerElem "tas2783-1 Speaker Playback"
If.twoAmpsStereoToOne {
Condition {
Type RegexMatch
Regex "2"
String "${var:SpeakerAmps}"
}
True {
Define.SpeakerMixerElem "tas2783 Speaker"
LibraryConfig.remap.Config {
ctl.default.map {
"name='tas2783 Speaker Playback Switch'" {
"name='tas2783-1 Speaker Playback Switch'".vindex.0 0
"name='tas2783-2 Speaker Playback Switch'".vindex.1 0
}
"name='tas2783 Speaker Playback Volume'" {
"name='tas2783-1 Speaker Playback Volume'".vindex.0 0
"name='tas2783-2 Speaker Playback Volume'".vindex.1 0
}
}
}
}
}
If.oneAmp {
Condition {
Type ControlExists
Control "name='tas2783-1 Speaker Playback Switch'"
}
True.Macro[{ SetLED { LED="speaker" Action="attach" CtlId="tas2783-1 Speaker Playback Switch" } }]
}
If.twoAmps {
Condition {
Type ControlExists
Control "name='tas2783-2 Speaker Playback Switch'"
}
True.Macro[{ SetLED { LED="speaker" Action="attach" CtlId="tas2783-2 Speaker Playback Switch" } }]
}