From 196e0142e10c69993c33efc09f7046a1985c0818 Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Wed, 15 Nov 2023 21:51:04 -0500 Subject: [PATCH] sof-rt5682/platform: "fix" JSL detection ugly method to detect JSL devices which hopefully will be improved in the future --- sof-rt5682/platform.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sof-rt5682/platform.conf b/sof-rt5682/platform.conf index 562ea9f..5675550 100644 --- a/sof-rt5682/platform.conf +++ b/sof-rt5682/platform.conf @@ -24,11 +24,12 @@ If.tgl { } } +# JSL doesn't have product_family, so use a less than ideal method of checking for each board name If.jsl { Condition { - Type String - String1 "${sys:class/dmi/id/product_family}" - String2 "Google_Dedede" + 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}" } True { Define.jsl y