]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-hda-dsp: update handling of cfg-dmics strings
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 21 Jan 2021 20:38:26 +0000 (14:38 -0600)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 Jan 2021 10:48:15 +0000 (11:48 +0100)
Existing platforms can have 1,2,3 or 4 microphones. The SOF firmware
will generate 2 or 4 channels. Since by default CaptureChannels is 2,
we need to add the case for cfg-dmics = 3.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-hda-dsp/HiFi.conf

index a250331eb86dd7dc9c404d2575579af57ff6499d..2c02c157c7726a5dd1609024d872a09ff2a0eba6 100644 (file)
@@ -16,9 +16,9 @@ SectionDevice."Mic1" {
                CapturePCM "hw:${CardId},6"
                If.chn {
                        Condition {
-                               Type String
-                               Haystack "${CardComponents}"
-                               Needle "cfg-dmics:4"
+                               Type RegexMatch
+                               Regex "cfg-dmics:[34]"
+                               String "${CardComponents}"
                        }
                        True {
                                CaptureChannels 4