From: Jaroslav Kysela Date: Mon, 19 Jan 2026 09:22:01 +0000 (+0100) Subject: USB-Audio: ALC4080 - detect S/PDIF device using find-pcm X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=27dc3eec31ec3205b116d49fd7d9f5fef209a5c2;p=alsa-ucm-conf.git USB-Audio: ALC4080 - detect S/PDIF device using find-pcm Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf b/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf index b061dde..882d3ab 100644 --- a/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf +++ b/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf @@ -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 "" } }