]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: ALC4080 - fix 'detect S/PDIF device using find-pcm'
authorJaroslav Kysela <perex@perex.cz>
Wed, 21 Jan 2026 14:34:36 +0000 (15:34 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 21 Jan 2026 14:36:04 +0000 (15:36 +0100)
The find-device may be NULL, so use double $$ to reference
the variable (skip NULL check).

Fixes: 27dc3ee ("USB-Audio: ALC4080 - detect S/PDIF device using find-pcm")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf

index 882d3abeef690edf7ed28c77a6cd5fd2deb89eaa..001d9aec1d6d7008a8b17de956b19487b6b9ed29 100644 (file)
@@ -107,7 +107,7 @@ If.spdif_dev2 {
        False.If.spdif_nodev {
                Condition {
                        Type String
-                       Empty "${find-device:type=pcm,stream=playback,field=subname,regex='Audio #3'}"
+                       Empty "$${find-device:type=pcm,stream=playback,field=subname,regex='Audio #3'}"
                }
                True.Define.SpdifName ""
        }