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 <peter.ujfalusi@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
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
+ }
}
}
}