USB-Audio: ALC4080 - detect S/PDIF device using find-pcm

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2026-01-19 10:22:01 +01:00
commit 27dc3eec31

View 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 ""
}
}