From 6ce6cb4f0373e8c0cfd2c265279063f43daebf59 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 28 Nov 2019 19:21:47 +0100 Subject: [PATCH] sof-hda-dsp: use CardComponents to detect the four digital microphones Signed-off-by: Jaroslav Kysela --- ucm2/sof-hda-dsp/HiFi.conf | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ucm2/sof-hda-dsp/HiFi.conf b/ucm2/sof-hda-dsp/HiFi.conf index 6dee548..43d8315 100644 --- a/ucm2/sof-hda-dsp/HiFi.conf +++ b/ucm2/sof-hda-dsp/HiFi.conf @@ -142,7 +142,19 @@ SectionDevice."DigitalMic" { Value { CapturePriority 100 CapturePCM "hw:${CardId},6" - CaptureChannels "2" + If.chn { + Condition { + Type String + Haystack "${CardComponents}" + Needle "cfg-dmics:4" + } + True { + CaptureChannels "4" + } + False { + CaptureChannels "2" + } + } If.vol { Condition { Type ControlExists -- 2.47.1