From: Peter Ujfalusi Date: Mon, 8 Sep 2025 08:08:05 +0000 (+0300) Subject: UCM2: Intel: sof-hda-dsp: HiFi: IPC3 mono DMIC is exposed as stereo PCM X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=2156c4e2851484d02895c465aff8d2e3602c4422;p=alsa-ucm-conf.git UCM2: Intel: sof-hda-dsp: HiFi: IPC3 mono DMIC is exposed as stereo PCM With IPC3 the DMIC PCM is stereo even in case of a single (mono) DMIC connection. Make the `CaptureChannels 1` conditional to IPC4 only. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/610 Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2393552 Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2384324 Closes: https://github.com/thesofproject/linux/issues/5528 Fixes: 56cbdfd04339 ("UCM2: Intel: sof-hda-dsp: HiFi: Fix handling of mono DMICs") 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 e452f83..77a7831 100644 --- a/ucm2/Intel/sof-hda-dsp/HiFi.conf +++ b/ucm2/Intel/sof-hda-dsp/HiFi.conf @@ -40,8 +40,17 @@ If.dmic { Regex "cfg-dmics:[1]" String "${CardComponents}" } - True { - CaptureChannels 1 + True.If.ipc4 { + # Only IPC4 exposes Mono DMIC PCM + # IPC3 creates Stereo PCM. + Condition { + Type String + String1 "${var:SOFIPCVer}" + String2 "ipc4" + } + True { + CaptureChannels 1 + } } } }