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>
True {
CaptureChannels 4
}
+ False.If.mono {
+ Condition {
+ Type RegexMatch
+ Regex "cfg-dmics:[1]"
+ String "${CardComponents}"
+ }
+ True {
+ CaptureChannels 1
+ }
+ }
}
If.vol {
Condition {