2023-11-11 23:25:39 +00:00
|
|
|
# platform detection
|
|
|
|
|
2023-11-26 17:45:51 +00:00
|
|
|
If.glk {
|
|
|
|
Condition {
|
|
|
|
Type String
|
|
|
|
String1 "$${sys:class/dmi/id/product_family}"
|
|
|
|
String2 "Google_Octopus"
|
|
|
|
}
|
|
|
|
True {
|
|
|
|
Define.dmicpcm 99
|
|
|
|
Define.hdmi hdmi567
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-11 23:25:39 +00:00
|
|
|
If.cml {
|
|
|
|
Condition {
|
2023-11-22 23:36:57 +00:00
|
|
|
Type RegexMatch
|
|
|
|
Regex "^Google_(Hatch|Puff)$"
|
|
|
|
String "$${sys:class/dmi/id/product_family}"
|
|
|
|
}
|
2023-11-14 21:07:27 +00:00
|
|
|
True {
|
2023-11-17 16:45:35 +00:00
|
|
|
Define.max98357apcm 5
|
|
|
|
Define.rt5682pcm 0
|
2023-11-11 23:25:39 +00:00
|
|
|
Define.dmicpcm 1
|
2023-11-16 21:25:33 +00:00
|
|
|
Define.hdmi hdmi234
|
2023-11-14 21:07:27 +00:00
|
|
|
}
|
2023-11-11 23:25:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
If.tgl {
|
|
|
|
Condition {
|
|
|
|
Type String
|
2023-11-17 16:39:12 +00:00
|
|
|
String1 "$${sys:class/dmi/id/product_family}"
|
2023-11-11 23:25:39 +00:00
|
|
|
String2 "Google_Volteer"
|
|
|
|
}
|
2023-11-14 21:07:27 +00:00
|
|
|
True {
|
2023-11-11 23:25:39 +00:00
|
|
|
Define.dmicpcm 99
|
2023-11-16 21:25:33 +00:00
|
|
|
Define.hdmi hdmi2345
|
2023-11-14 21:07:27 +00:00
|
|
|
}
|
2023-11-11 23:25:39 +00:00
|
|
|
}
|
|
|
|
|
2023-11-16 02:51:04 +00:00
|
|
|
# JSL doesn't have product_family, so use a less than ideal method of checking for each board name
|
2023-11-11 23:25:39 +00:00
|
|
|
If.jsl {
|
|
|
|
Condition {
|
2023-11-16 02:51:04 +00:00
|
|
|
Type RegexMatch
|
2023-11-23 00:58:04 +00:00
|
|
|
Regex "^(beadrix|beetley|blipper|bookem|boten|botenflex|boxy|bugzzy|cret|cret360|dexi|dibbi|drawcia|drawlat|drawman|drawper|galith|galith360|gallop|galnat|galnat360|galtic|galtic360|gesture|kracko|kracko360|landia|landrid|lantis|madoo|magister|maglet|maglia|maglith|magma|magneto|magolor|magpie|metaknight|oscino|pasara|peezer|pirette|pirika|sasuke|sasukette|shotzo|storo|taranza|waddledee|waddledoo)$"
|
2023-11-17 16:39:12 +00:00
|
|
|
String "$${sys:class/dmi/id/product_name}"
|
2023-11-11 23:25:39 +00:00
|
|
|
}
|
2023-11-14 21:07:27 +00:00
|
|
|
True {
|
2023-11-11 23:25:39 +00:00
|
|
|
Define.dmicpcm 5
|
2023-11-16 21:25:33 +00:00
|
|
|
Define.hdmi hdmi234
|
2023-11-14 21:07:27 +00:00
|
|
|
}
|
2023-11-11 23:25:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
If.adl {
|
|
|
|
Condition {
|
|
|
|
Type RegexMatch
|
|
|
|
Regex "^Google_(Brya|Brask|Nissa)$"
|
2023-11-17 16:39:12 +00:00
|
|
|
String "$${sys:class/dmi/id/product_family}"
|
2023-11-11 23:25:39 +00:00
|
|
|
}
|
2023-11-14 21:07:27 +00:00
|
|
|
True {
|
2023-11-11 23:25:39 +00:00
|
|
|
Define.dmicpcm 99
|
2023-11-16 21:25:33 +00:00
|
|
|
Define.hdmi hdmi2345
|
2023-11-14 21:07:27 +00:00
|
|
|
}
|
2023-11-11 23:25:39 +00:00
|
|
|
}
|