]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
UCM2: Intel: sof-hda-dsp: HiFi: Fix handling of mono DMICs
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 12 Jun 2025 13:33:01 +0000 (16:33 +0300)
committerJaroslav Kysela <perex@perex.cz>
Fri, 20 Jun 2025 10:05:49 +0000 (12:05 +0200)
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>
ucm2/Intel/sof-hda-dsp/HiFi.conf

index 9689b5620bd27d2c5a4b498299311328e2859af3..e452f8340d07bc9aad64f836f62ae926730890ff 100644 (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 {