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 <peter.ujfalusi@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Peter Ujfalusi 2025-06-12 16:33:01 +03:00 committed by Jaroslav Kysela
commit 56cbdfd043

View file

@ -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 {