]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ALC4080: fix spdif_nodev default condition
authorJaroslav Kysela <perex@perex.cz>
Thu, 4 Jun 2026 12:48:02 +0000 (14:48 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 4 Jun 2026 12:49:11 +0000 (14:49 +0200)
Fix the thinko. The device layout is like:

  device: 0
  name: USB Audio
  subname: subdevice #0
  ...
  device: 3
  name: USB Audio #3
  subname: subdevice #0

Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/773
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf

index 146ada5f1d585f0d6238d3989a92b937e3f3e7bd..f6cf69dd919531f924d06326ff74fdab437e1680 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=name,regex='Audio #3'}"
                }
                True.Define.SpdifName ""
        }