]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: ALC1220 - add support for Gigabyte TRX40 Aorus Pro WiFi Rev 1.2
authorJaroslav Kysela <perex@perex.cz>
Thu, 16 Jun 2022 11:25:20 +0000 (13:25 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 16 Jun 2022 11:25:25 +0000 (13:25 +0200)
It's an initial support according the pull request.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/156
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Realtek/ALC1220-VB-Desktop-HiFi.conf
ucm2/USB-Audio/USB-Audio.conf

index 0d753843e404cb3091781be91981077a162abd67..35cd41d6ec6b4e51c4a9693274b1fc32a2a2aace 100644 (file)
@@ -1,3 +1,18 @@
+Define.Mic1Dev 1
+Define.Mic2Dev 2
+
+If.trx4-aorus-wifi-rev-1-2 {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Needle "USB0414:a00d"
+       }
+       True.Define {
+               Mic1Dev 2
+               Mic2Dev 1
+       }
+}
+
 SectionDevice."Speaker" {
        Comment "Speakers"
        Value {
@@ -42,7 +57,7 @@ SectionDevice."Mic1" {
        Comment "Microphone"
        Value {
                CapturePriority 200
-               CapturePCM "hw:${CardId},1"
+               CapturePCM "hw:${CardId},${var:Mic1Dev}"
                JackControl "Mic Jack"
                CaptureMixerElem "Mic"
        }
@@ -52,7 +67,7 @@ SectionDevice."Mic2" {
        Comment "Front Microphone"
        Value {
                CapturePriority 300
-               CapturePCM "hw:${CardId},2"
+               CapturePCM "hw:${CardId},${var:Mic2Dev}"
                JackControl "Front Mic Jack"
                CaptureMixerElem "Front Mic"
        }
index 5590de030ade7fff86b4a8a8fb5947367110794d..325d48c328f2412a0c4d1ecf3129eba5988da58d 100644 (file)
@@ -19,12 +19,13 @@ If.realtek-alc1220-vb {
                Type RegexMatch
                String "${CardComponents}"
                # 0414:a002 Gigabyte TRX40 Aorus Pro WiFi
+               # 0414:a00d Gigabyte TRX40 Aorus Pro WiFi Rev 1.2
                # 0b05:1917 ASUS ROG Strix
                # 0b05:1918 ASUS PRIME TRX40 PRO-S
                # 0db0:0d64 MSI TRX40 Creator
                # 0db0:543d MSI TRX40
                # 26ce:0a01 Asrock TRX40 Creator
-               Regex "USB((0414:a002)|(0b05:191[78])|(0db0:(0d64|543d))|(26ce:0a01))"
+               Regex "USB((0414:a00[2d])|(0b05:191[78])|(0db0:(0d64|543d))|(26ce:0a01))"
        }
        True.Define.ProfileName "Realtek/ALC1220-VB-Desktop"
 }