From: Peter Ujfalusi Date: Thu, 12 Jun 2025 13:33:01 +0000 (+0300) Subject: UCM2: Intel: sof-hda-dsp: HiFi: Fix handling of mono DMICs X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=56cbdfd04339cf9598cd9d57f5c1a382504ae902;p=alsa-ucm-conf.git UCM2: Intel: sof-hda-dsp: HiFi: Fix handling of mono DMICs When a single DMIC is present in the system we need to set the CaptureChannels to 1 since the PCM device only supports mono, PA/PW will reject the profile since it cannot open the DMIC PCM device. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/579 Signed-off-by: Peter Ujfalusi Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/Intel/sof-hda-dsp/HiFi.conf b/ucm2/Intel/sof-hda-dsp/HiFi.conf index 9689b56..e452f83 100644 --- a/ucm2/Intel/sof-hda-dsp/HiFi.conf +++ b/ucm2/Intel/sof-hda-dsp/HiFi.conf @@ -34,6 +34,16 @@ If.dmic { True { CaptureChannels 4 } + False.If.mono { + Condition { + Type RegexMatch + Regex "cfg-dmics:[1]" + String "${CardComponents}" + } + True { + CaptureChannels 1 + } + } } If.vol { Condition {