Existing platforms can have 1,2,3 or 4 microphones. The SOF firmware
will generate 2 or 4 channels. Since by default CaptureChannels is 2,
we need to add the case for cfg-dmics = 3.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
CapturePCM "hw:${CardId},6"
If.chn {
Condition {
- Type String
- Haystack "${CardComponents}"
- Needle "cfg-dmics:4"
+ Type RegexMatch
+ Regex "cfg-dmics:[34]"
+ String "${CardComponents}"
}
True {
CaptureChannels 4