]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: chtmax98090: add generic HiFi.conf and SOF support
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 28 May 2020 22:59:01 +0000 (17:59 -0500)
committerJaroslav Kysela <perex@perex.cz>
Fri, 29 May 2020 13:20:32 +0000 (15:20 +0200)
Tested on Cyan Chromebook with both SOF and SST drivers.

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

index 66f0cb9585928ae4eba674a170607449fd5281c2..ed4b163d99f341bd9dd74eeb8eef4d218d62bed2 100644 (file)
@@ -86,3 +86,14 @@ If.bytcht_rt5650 {
                <chtrt5650/HiFi.conf>
        }
 }
+
+If.bytcht_max98090 {
+       Condition {
+               Type String
+               Haystack "${CardName}"
+               Needle "bytcht max98090"
+       }
+       True {
+               <chtmax98090/HiFi.conf>
+       }
+}
diff --git a/ucm2/chtmax98090/HiFi.conf b/ucm2/chtmax98090/HiFi.conf
new file mode 100644 (file)
index 0000000..f4a8138
--- /dev/null
@@ -0,0 +1,26 @@
+SectionVerb {
+       Value {
+               TQ "HiFi"
+       }
+
+       If.platform {
+               Condition {
+                       Type ControlExists
+                       Control "name='media0_in Gain 0 Switch'"
+               }
+               True {
+                       EnableSequence [
+                               <platforms/bytcr/PlatformEnableSeq.conf>
+                       ]
+               }
+       }
+
+       EnableSequence [
+               <codecs/max98090/EnableSeq.conf>
+       ]
+}
+
+<codecs/max98090/Headphones.conf>
+<codecs/max98090/Speaker.conf>
+<codecs/max98090/InternalMic.conf>
+<codecs/max98090/HeadsetMic.conf>