10.nixos-hardware/asus/proart/px13/hn7306eac/ucm2/sof-soundwire/tas2783.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

43 lines
1 KiB
Text

# TAS2783 Use case Configuration for sof-soundwire card
#
# Arguments:
# ForAmps - regex filter for var:SpeakerAmps
# Amp - amplifier number (1,2 etc.)
#
DefineMacro.tas2783spk.If.0 {
Condition {
Type RegexMatch
Regex "${var:__ForAmps}"
String "${var:SpeakerAmps}"
}
True {
EnableSequence [
cset "name='tas2783-${var:__Amp} Amp Playback Switch' 1"
cset "name='tas2783-${var:__Amp} Speaker Playback Switch' 1"
]
DisableSequence [
cset "name='tas2783-${var:__Amp} Amp Playback Switch' 0"
cset "name='tas2783-${var:__Amp} Speaker Playback Switch' 0"
]
}
}
SectionDevice."Speaker" {
Comment "Speaker"
EnableSequence [
# cset "name='tas2783 Speaker Playback Switch' on"
]
DisableSequence [
# cset "name='tas2783 Speaker Playback Switch' off"
]
Value {
PlaybackPriority 100
PlaybackPCM "hw:${CardId},2"
PlaybackMixer "default:${CardId}"
PlaybackMixerElem "${var:SpeakerMixerElem}"
}
}