codecs/max98390: Add redrix specific case

redrix
WeirdTreeThing 2024-03-28 11:38:23 -04:00
parent 2b2f3a7c99
commit 825efd832e
No known key found for this signature in database
GPG Key ID: 1F56A4B52998B851
2 changed files with 44 additions and 8 deletions

View File

@ -1,10 +1,35 @@
# MAX98390 specific volume control settings
BootSequence [
If.redrix {
Condition {
Type String
Haystack "${sys:devices/virtual/dmi/id/product_name}"
Needle "Redrix"
}
True.BootSequence [
cset "name='Left DAI Sel Mux' Left"
cset "name='Tweeter Left DAI Sel Mux' Left"
cset "name='Right DAI Sel Mux' Right"
cset "name='Tweeter Right DAI Sel Mux' Right"
cset "name='Left Digital Volume' 153"
cset "name='Tweeter Left Digital Volume' 155"
cset "name='Right Digital Volume' 153"
cset "name='Tweeter Right Digital Volume' 155"
cset "name='Left Current Limit' 2.20A"
cset "name='Tweeter Left Current Limit' 2.20A"
cset "name='Right Current Limit' 2.20A"
cset "name='Tweeter Right Current Limit' 2.20A"
cset "name='Left Boost Clock Phase' 0"
cset "name='Tweeter Left Boost Clock Phase' 1"
cset "name='Right Boost Clock Phase' 2"
cset "name='Tweeter Right Boost Clock Phase' 3"
]
False.BootSequence[
cset "name='Left DAI Sel Mux' Left"
cset "name='Right DAI Sel Mux' Right"
cset "name='Left Digital Volume' 138"
cset "name='Right Digital Volume' 138"
cset "name='Left Boost Clock Phase' 0"
cset "name='Right Boost Clock Phase' 3"
]
]
}

View File

@ -1,9 +1,20 @@
If.redrix {
Condition {
Type String
Haystack "${sys:devices/virtual/dmi/id/product_name}"
Needle "Redrix"
}
True.Define.channels 4
False.Define.channels 2
}
SectionDevice."Speaker" {
Comment "Speaker"
Value {
PlaybackPriority 100
PlaybackPCM "hw:${CardId},0"
PlaybackChannels ${var:channels}
}
EnableSequence [
cset "name='Left Spk Switch' on"