]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: ALC4080 - detect S/PDIF device using find-pcm master
authorJaroslav Kysela <perex@perex.cz>
Mon, 19 Jan 2026 09:22:01 +0000 (10:22 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 19 Jan 2026 10:09:47 +0000 (11:09 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf

index b061dde72c85bf5c08d531d1f837d80c4635fa9e..882d3abeef690edf7ed28c77a6cd5fd2deb89eaa 100644 (file)
@@ -94,22 +94,23 @@ If.headset_ctl {
        }
 }
 
-If.spdif_nodev {
-       Condition {
-               Type RegexMatch
-               String "${CardComponents}"
-               Regex "USB(0db0:36e7)"
-       }
-       True.Define.SpdifName ""
-}
-
 If.spdif_dev2 {
        Condition {
                Type RegexMatch
                String "${CardComponents}"
                Regex "USB(0b05:(1996|1a5[23c])|0db0:1feb)"
        }
-       True.Define.SpdifPCM "2"
+       True.Define {
+               SpdifName "S/PDIF Output"
+               SpdifPCM "2"
+       }
+       False.If.spdif_nodev {
+               Condition {
+                       Type String
+                       Empty "${find-device:type=pcm,stream=playback,field=subname,regex='Audio #3'}"
+               }
+               True.Define.SpdifName ""
+       }
 }
 
 If.gigabyte-aorus-ultra {
@@ -126,7 +127,6 @@ If.gigabyte-aorus-ultra {
                Mic2Mindex "1"
                Mic2Jack "name='Mic - Input Jack',index=1"
                Mic2PCM "1"
-               SpdifName ""
                Line1Name ""
        }
 }
@@ -185,7 +185,6 @@ If.msi-meg-unify {
        }
        True.Define {
                HeadphonesName ""
-               SpdifName ""
        }
 }
 
@@ -198,7 +197,6 @@ If.asus-rog-strix {
        True.Define {
                Line1PCM "3"
                HeadphonesName ""
-               SpdifName ""
        }
 }