From 48a6d2c3f1a89b31fe1a3a6a5448b3a0d4d31bef Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 3 Feb 2021 12:02:59 +0100 Subject: [PATCH] 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 --- ucm2/sof-soundwire/dmic.conf | 2 +- ucm2/sof-soundwire/sof-soundwire.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" -- 2.47.1