From: Pierre-Louis Bossart Date: Thu, 21 Jan 2021 20:38:26 +0000 (-0600) Subject: sof-hda-dsp: update handling of cfg-dmics strings X-Git-Tag: v1.2.5~58 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3bea51c3188257c5bc0eaaed922d1f714e3508c7;p=alsa-ucm-conf.git sof-hda-dsp: update handling of cfg-dmics strings 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 Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/sof-hda-dsp/HiFi.conf b/ucm2/sof-hda-dsp/HiFi.conf index a250331..2c02c15 100644 --- a/ucm2/sof-hda-dsp/HiFi.conf +++ b/ucm2/sof-hda-dsp/HiFi.conf @@ -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