From 56cbdfd04339cf9598cd9d57f5c1a382504ae902 Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Thu, 12 Jun 2025 16:33:01 +0300 Subject: [PATCH] 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 --- ucm2/Intel/sof-hda-dsp/HiFi.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 { -- 2.47.1