From: Jaroslav Kysela Date: Thu, 28 Nov 2019 18:21:47 +0000 (+0100) Subject: sof-hda-dsp: use CardComponents to detect the four digital microphones X-Git-Tag: v1.2.1.2~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=6ce6cb4f0373e8c0cfd2c265279063f43daebf59;p=alsa-ucm-conf.git sof-hda-dsp: use CardComponents to detect the four digital microphones Signed-off-by: Jaroslav Kysela --- 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