]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: move Gigabyte Aorus configs to separate directory
authorJaroslav Kysela <perex@perex.cz>
Mon, 22 Nov 2021 08:46:30 +0000 (09:46 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 22 Nov 2021 09:00:25 +0000 (10:00 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Gigabyte-Aorus-Master-Front-Headphone.conf [deleted symlink]
ucm2/USB-Audio/Gigabyte/Aorus-Master-Main-Audio-HiFi.conf [moved from ucm2/USB-Audio/Gigabyte-Aorus-Master-Main-Audio-HiFi.conf with 100% similarity]
ucm2/USB-Audio/Gigabyte/Aorus-Master-Main-Audio.conf [moved from ucm2/USB-Audio/Gigabyte-Aorus-Master-Main-Audio.conf with 62% similarity]
ucm2/USB-Audio/USB-Audio.conf
ucm2/common/linked.conf [new file with mode: 0644]

diff --git a/ucm2/USB-Audio/Gigabyte-Aorus-Master-Front-Headphone.conf b/ucm2/USB-Audio/Gigabyte-Aorus-Master-Front-Headphone.conf
deleted file mode 120000 (symlink)
index 1376437..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../module/lib/linked.conf
\ No newline at end of file
similarity index 62%
rename from ucm2/USB-Audio/Gigabyte-Aorus-Master-Main-Audio.conf
rename to ucm2/USB-Audio/Gigabyte/Aorus-Master-Main-Audio.conf
index 656b989762e6b33f9c7d5e13b6be14fb09757b36..2895f9e47b0aaca6d4fd5c8dc31fce1883719c4f 100644 (file)
@@ -1,6 +1,5 @@
-Syntax 3
 Comment "Gigabyte Aorus Integrated Audio"
 SectionUseCase."HiFi" {
-       File "Gigabyte-Aorus-Master-Main-Audio-HiFi.conf"
+       File "Gigabyte/Aorus-Master-Main-Audio-HiFi.conf"
        Comment "Default Alsa Profile"
 }
index 9f8d26ccdb85a8cf7973ba17f9bb4686ee7648d0..209853fc6e2b0dc66e9b8ba5e6937fd972ea1e43 100644 (file)
@@ -2,6 +2,25 @@ Syntax 4
 
 Define.ProfileName ""
 
+If.linked {
+       Condition {
+               Type RegexMatch
+               String "${CardComponents}"
+               # Aorus Master Front Headphone 0414:a000
+               Regex "USB0414:a000"
+       }
+       True.Define.ProfileName "../common/linked"
+}
+
+If.gigabyte-aorus-main {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Needle "USB0414:a001"
+       }
+       True.Define.ProfileName "Gigabyte/Aorus-Master-Main-Audio"
+}
+
 If.dell-wd15 {
        Condition {
                Type RegexMatch
diff --git a/ucm2/common/linked.conf b/ucm2/common/linked.conf
new file mode 100644 (file)
index 0000000..d7656a8
--- /dev/null
@@ -0,0 +1,3 @@
+ValueDefaults {
+       Linked 1
+}