]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
SOF: bytcht selections
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 21 Apr 2020 21:32:48 +0000 (16:32 -0500)
committerJaroslav Kysela <perex@perex.cz>
Thu, 28 May 2020 18:34:16 +0000 (20:34 +0200)
Use the SOF driver name to load a config, using a File inclusion based
on the legacy card name.

Suggested-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/SOF/HiFi.conf [new file with mode: 0644]
ucm2/SOF/SOF.conf [new file with mode: 0644]

diff --git a/ucm2/SOF/HiFi.conf b/ucm2/SOF/HiFi.conf
new file mode 100644 (file)
index 0000000..66f0cb9
--- /dev/null
@@ -0,0 +1,88 @@
+
+If.bytcht_rt5640 {
+       Condition {
+               Type String
+               Haystack "${CardName}"
+               Needle "bytcht rt5640"
+       }
+       True {
+               <bytcr-rt5640/HiFi.conf>
+       }
+}
+
+If.bytcht_rt5651 {
+       Condition {
+               Type String
+               Haystack "${CardName}"
+               Needle "bytcht rt5651"
+       }
+       True {
+               <bytcr-rt5651/HiFi.conf>
+       }
+}
+
+If.bytcht_cx2072x {
+       Condition {
+               Type String
+               Haystack "${CardName}"
+               Needle "bytcht cx2072x"
+       }
+       True {
+               <bytcht-cx2072x/HiFi.conf>
+       }
+}
+
+If.bytcht_es8316 {
+       Condition {
+               Type String
+               Haystack "${CardName}"
+               Needle "bytcht es8316"
+       }
+       True {
+               <bytcht-es8316/HiFi.conf>
+       }
+}
+
+If.bytcht_rt5672 {
+       Condition {
+               Type String
+               Haystack "${CardName}"
+               Needle "bytcht rt5672"
+       }
+       True {
+               <cht-bsw-rt5672/HiFi.conf>
+       }
+}
+
+If.bytcht_nau8824 {
+       Condition {
+               Type String
+               Haystack "${CardName}"
+               Needle "bytcht nau8824"
+       }
+       True {
+               <chtnau8824/HiFi.conf>
+       }
+}
+
+If.bytcht_rt5645 {
+       Condition {
+               Type String
+               Haystack "${CardName}"
+               Needle "bytcht rt5645"
+       }
+       True {
+               <chtrt5645/HiFi.conf>
+       }
+}
+
+If.bytcht_rt5650 {
+       Condition {
+               Type String
+               Haystack "${CardName}"
+               Needle "bytcht rt5650"
+       }
+       True {
+               <chtrt5650/HiFi.conf>
+       }
+}
diff --git a/ucm2/SOF/SOF.conf b/ucm2/SOF/SOF.conf
new file mode 100644 (file)
index 0000000..d7a0518
--- /dev/null
@@ -0,0 +1,6 @@
+Syntax 2
+
+SectionUseCase."HiFi" {
+       File "HiFi.conf"
+       Comment "Play HiFi quality Music"
+}