]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: ALC4080 - correct S/PDIF PCM device for USB 0db0:1feb
authorJaroslav Kysela <perex@perex.cz>
Wed, 7 Sep 2022 07:23:29 +0000 (09:23 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 7 Sep 2022 07:24:27 +0000 (09:24 +0200)
USB 0db0:1feb - MSI Edge Wifi Z690

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

index 80231785eaac720ffa65ece4d2f3ebeca74046cf..e18de59a9e71c219c355bd38430225b510808986 100644 (file)
@@ -32,6 +32,15 @@ Define {
        SpdifPCM "hw:${CardId},3"
 }
 
+If.spdif_dev2 {
+       Condition {
+               Type RegexMatch
+               String "${CardComponents}"
+               Regex "USB(0b05:1996|0db0:1feb)"
+       }
+       True.Define.SpdifPCM "hw:${CardId},2"
+}
+
 If.asus-rog-usb {
        Condition {
                Type RegexMatch
@@ -39,7 +48,6 @@ If.asus-rog-usb {
                Regex "USB(0b05:1996)"
        }
        True.Define {
-               SpdifPCM "hw:${CardId},2"
                Mic1Name "Front Microphone"
                Mic2Name "Microphone"
                Mic2Mixer "Analog In"