tgl/*: use common config for max98373/max98373 + rt5682s

pull/1/head
WeirdTreeThing 2023-06-18 07:53:05 -04:00
parent 72618a9b58
commit c5838ad3a9
No known key found for this signature in database
GPG Key ID: 1F56A4B52998B851
3 changed files with 125 additions and 2 deletions

View File

@ -14,17 +14,140 @@ If.delbin {
String "${sys:devices/virtual/dmi/id/product_sku}" String "${sys:devices/virtual/dmi/id/product_sku}"
} }
True.SectionUseCase."HiFi" { True.SectionUseCase."HiFi" {
File "HiFi.delbin.rt5682vs.conf" File "HiFi.max98373.rt5682vs.conf"
Comment "Default" Comment "Default"
} }
False.SectionUseCase."HiFi" { False.SectionUseCase."HiFi" {
File "HiFi.delbin.conf" File "HiFi.max98373.conf"
Comment "Default" Comment "Default"
} }
} }
} }
} }
If.collis {
Condition {
Type String
Haystack "${sys:devices/virtual/dmi/id/product_name}"
Needle "Collis"
}
True {
If.rt5682vs {
Condition {
Type RegexMatch
Regex "^sku(983045|983046|983047|983048)$"
String "${sys:devices/virtual/dmi/id/product_sku}"
}
True.SectionUseCase."HiFi" {
File "HiFi.max98373.rt5682vs.conf"
Comment "Default"
}
False.SectionUseCase."HiFi" {
File "HiFi.max98373.conf"
Comment "Default"
}
}
}
}
If.copano {
Condition {
Type String
Haystack "${sys:devices/virtual/dmi/id/product_name}"
Needle "Copano"
}
True {
If.rt5682vs {
Condition {
Type RegexMatch
Regex "^sku(917507)$"
String "${sys:devices/virtual/dmi/id/product_sku}"
}
True.SectionUseCase."HiFi" {
File "HiFi.max98373.rt5682vs.conf"
Comment "Default"
}
False.SectionUseCase."HiFi" {
File "HiFi.max98373.conf"
Comment "Default"
}
}
}
}
If.drobit {
Condition {
Type String
Haystack "${sys:devices/virtual/dmi/id/product_name}"
Needle "Drobit"
}
True {
If.rt5682vs {
Condition {
Type RegexMatch
Regex "^sku(786436|786437|786438)$"
String "${sys:devices/virtual/dmi/id/product_sku}"
}
True.SectionUseCase."HiFi" {
File "HiFi.max98373.rt5682vs.conf"
Comment "Default"
}
False.SectionUseCase."HiFi" {
File "HiFi.max98373.conf"
Comment "Default"
}
}
}
}
If.voema {
Condition {
Type String
Haystack "${sys:devices/virtual/dmi/id/product_name}"
Needle "Voema"
}
True.SectionUseCase."HiFi" {
File "HiFi.max98373.conf"
Comment "Default"
}
}
If.volet {
Condition {
Type String
Haystack "${sys:devices/virtual/dmi/id/product_name}"
Needle "Volet"
}
True.SectionUseCase."HiFi" {
File "HiFi.max98373.conf"
Comment "Default"
}
}
If.volta {
Condition {
Type String
Haystack "${sys:devices/virtual/dmi/id/product_name}"
Needle "Volta"
}
True.SectionUseCase."HiFi" {
File "HiFi.max98373.conf"
Comment "Default"
}
}
If.voxel {
Condition {
Type String
Haystack "${sys:devices/virtual/dmi/id/product_name}"
Needle "Voxel"
}
True.SectionUseCase."HiFi" {
File "HiFi.max98373.conf"
Comment "Default"
}
}
If.elemi { If.elemi {
Condition { Condition {
Type String Type String