]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
UCM2: Intel: sof-hda-dsp: HiFi: IPC3 mono DMIC is exposed as stereo PCM
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Mon, 8 Sep 2025 08:08:05 +0000 (11:08 +0300)
committerJaroslav Kysela <perex@perex.cz>
Thu, 18 Sep 2025 07:50:59 +0000 (09:50 +0200)
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>
ucm2/Intel/sof-hda-dsp/HiFi.conf

index e452f8340d07bc9aad64f836f62ae926730890ff..77a7831e58997d199b6ae2137ab606d84fb04c83 100644 (file)
@@ -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
+                                               }
                                        }
                                }
                        }