]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-soundwire: use the ${find-device} lookup for the dmic device
authorJaroslav Kysela <perex@perex.cz>
Wed, 3 Feb 2021 11:02:59 +0000 (12:02 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 13 May 2021 14:30:32 +0000 (16:30 +0200)
The PCM device number for the internal digital microphone is not fixed.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-soundwire/dmic.conf
ucm2/sof-soundwire/sof-soundwire.conf

index 1f704a530447a9083f1a8ba434acc90200148166..755840ab3a441b8a27602f8608fa135efbd34241 100644 (file)
@@ -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
index 52ce2f06c868c9290871103bff30deac01f25073..8c2187f9c20cbbd8a6838613bf3774914e0658d7 100644 (file)
@@ -1,4 +1,4 @@
-Syntax 3
+Syntax 4
 
 SectionUseCase."HiFi" {
        File "HiFi.conf"