From: Jaroslav Kysela Date: Wed, 3 Feb 2021 11:02:59 +0000 (+0100) Subject: sof-soundwire: use the ${find-device} lookup for the dmic device X-Git-Tag: v1.2.5~29 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=48a6d2c3f1a89b31fe1a3a6a5448b3a0d4d31bef;p=alsa-ucm-conf.git sof-soundwire: use the ${find-device} lookup for the dmic device The PCM device number for the internal digital microphone is not fixed. Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/sof-soundwire/dmic.conf b/ucm2/sof-soundwire/dmic.conf index 1f704a5..755840a 100644 --- a/ucm2/sof-soundwire/dmic.conf +++ b/ucm2/sof-soundwire/dmic.conf @@ -3,7 +3,7 @@ SectionDevice."Mic" { Value { CapturePriority 100 - CapturePCM "hw:${CardId},3" + CapturePCM "hw:${CardId},${find-device:type=pcm,stream=capture,field=id,regex='DMIC '}" If.chn { Condition { Type RegexMatch diff --git a/ucm2/sof-soundwire/sof-soundwire.conf b/ucm2/sof-soundwire/sof-soundwire.conf index 52ce2f0..8c2187f 100644 --- a/ucm2/sof-soundwire/sof-soundwire.conf +++ b/ucm2/sof-soundwire/sof-soundwire.conf @@ -1,4 +1,4 @@ -Syntax 3 +Syntax 4 SectionUseCase."HiFi" { File "HiFi.conf"