From 13247f3592f256c853f7aa5de6d57b84fa8906ed Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Sun, 17 Sep 2023 15:44:10 -0400 Subject: [PATCH] jsl/sof-rt5682: Add Storo360 Support Only works for non-rt5682vs skus currently --- jsl/sof-rt5682/sof-rt5682.conf | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/jsl/sof-rt5682/sof-rt5682.conf b/jsl/sof-rt5682/sof-rt5682.conf index 9618e36..686f92e 100644 --- a/jsl/sof-rt5682/sof-rt5682.conf +++ b/jsl/sof-rt5682/sof-rt5682.conf @@ -64,3 +64,35 @@ If.magpie { } } } + +If.storo360 { + Condition { + Type String + Haystack "${sys:devices/virtual/dmi/id/product_name}" + Needle "Storo360" + } + True { + If.rt1015p_2mic { + Condition { + Type RegexMatch + Regex "^sku(1638401|1638402|1638403|1638404|1638405|1638406)$" + String "${sys:devices/virtual/dmi/id/product_sku}" + } + True.SectionUseCase."HiFi" { + File "HiFi.rt1015p.2mic.conf" + Comment "Default" + } + } + If.rt5682vs_rt1015p_2mic { + Condition { + Type RegexMatch + Regex "^sku(1638407|1638408|1638409|1638410|1638411|1638412)$" + String "${sys:devices/virtual/dmi/id/product_sku}" + } + True.SectionUseCase."HiFi" { + File "HiFi.rt1015p.2mic.conf" + Comment "Default" + } + } + } +}