sof-rt5682/platform: Fix detection on JSL

product_family doesn't exist on jsl, so allow the var to not exist
common-codecs
WeirdTreeThing 2023-11-17 11:39:12 -05:00
parent 0bf94cabe6
commit c90948fe88
No known key found for this signature in database
GPG Key ID: 1F56A4B52998B851
1 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
If.cml {
Condition {
Type String
String1 "${sys:class/dmi/id/product_family}"
String1 "$${sys:class/dmi/id/product_family}"
String2 "Google_Hatch"
}
True {
@ -16,7 +16,7 @@ If.cml {
If.tgl {
Condition {
Type String
String1 "${sys:class/dmi/id/product_family}"
String1 "$${sys:class/dmi/id/product_family}"
String2 "Google_Volteer"
}
True {
@ -31,7 +31,7 @@ If.jsl {
Condition {
Type RegexMatch
Regex "^(beadrix|beetley|blipper|bookem|boten|botenflex|boxy|bugzzy|common|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)$"
String "${sys:class/dmi/id/product_name}"
String "$${sys:class/dmi/id/product_name}"
}
True {
Define.jsl y
@ -44,7 +44,7 @@ If.adl {
Condition {
Type RegexMatch
Regex "^Google_(Brya|Brask|Nissa)$"
String "${sys:class/dmi/id/product_family}"
String "$${sys:class/dmi/id/product_family}"
}
True {
Define.adl y