USB-Audio: ALC4080 - detect S/PDIF device using find-pcm
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
f3ed8d34e7
commit
27dc3eec31
1 changed files with 11 additions and 13 deletions
|
|
@ -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 ""
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue