]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: move Dell configs to own subdirectory
authorJaroslav Kysela <perex@perex.cz>
Tue, 16 Nov 2021 14:11:24 +0000 (15:11 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Nov 2021 16:38:30 +0000 (17:38 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Dell/Desktop-Front-Headset.conf [moved from ucm2/USB-Audio/Dell-Desktop-Front-Headset.conf with 100% similarity]
ucm2/USB-Audio/Dell/Desktop-Front-Speaker.conf [moved from ucm2/USB-Audio/Dell-Desktop-Front-Speaker.conf with 100% similarity]
ucm2/USB-Audio/Dell/Desktop-Front.conf [moved from ucm2/USB-Audio/Dell-Desktop-Front.conf with 68% similarity]
ucm2/USB-Audio/Dell/Desktop-Rear-Line.conf [moved from ucm2/USB-Audio/Dell-Desktop-Rear-Line.conf with 100% similarity]
ucm2/USB-Audio/Dell/Desktop-Rear.conf [moved from ucm2/USB-Audio/Dell-Desktop-Rear.conf with 74% similarity]
ucm2/USB-Audio/Dell/WD15-Dock-HiFi.conf [moved from ucm2/USB-Audio/Dell-WD15-Dock-HiFi.conf with 100% similarity]
ucm2/USB-Audio/Dell/WD15-Dock.conf [moved from ucm2/USB-Audio/Dell-WD15-Dock.conf with 75% similarity]
ucm2/USB-Audio/USB-Audio.conf

similarity index 68%
rename from ucm2/USB-Audio/Dell-Desktop-Front.conf
rename to ucm2/USB-Audio/Dell/Desktop-Front.conf
index 4c6f9f98126f9f4e270e9b2cfbcc21c3125d0401..758e768c76572d8bd8ca835ffaaebbf809c43bcd 100644 (file)
@@ -2,10 +2,10 @@ Syntax 2
 Comment "USB-audio on the front of Dell Desktop"
 SectionUseCase."Speaker" {
        Comment "Internal Speaker"
-       File "Dell-Desktop-Front-Speaker.conf"
+       File "Dell/Desktop-Front-Speaker.conf"
 }
 
 SectionUseCase."Headset" {
        Comment "Front Headset"
-       File "Dell-Desktop-Front-Headset.conf"
+       File "Dell/Desktop-Front-Headset.conf"
 }
similarity index 74%
rename from ucm2/USB-Audio/Dell-Desktop-Rear.conf
rename to ucm2/USB-Audio/Dell/Desktop-Rear.conf
index 3c1f87bf948e2afaeb3dfd429ee3f9356a43850d..7df353b118760b263fc148ab8c9bf24bc32cb72d 100644 (file)
@@ -2,5 +2,5 @@ Syntax 2
 Comment "USB-audio on the rear of Dell Desktop"
 SectionUseCase."Line" {
        Comment "Line Out"
-       File "Dell-Desktop-Rear-Line.conf"
+       File "Dell/Desktop-Rear-Line.conf"
 }
similarity index 75%
rename from ucm2/USB-Audio/Dell-WD15-Dock.conf
rename to ucm2/USB-Audio/Dell/WD15-Dock.conf
index 1fbac9e5c1bd49a7bd4262e911c13720069ba55d..682ff41fdb2087a198c16a65169a9bb8b9c2fc30 100644 (file)
@@ -1,6 +1,6 @@
 Syntax 2
 Comment "USB-audio on Dell WD15 docking station"
 SectionUseCase."HiFi" {
-       File "Dell-WD15-Dock-HiFi.conf"
+       File "Dell/WD15-Dock-HiFi.conf"
        Comment "Default"
 }
index a3b1cf3dd6b68f7f75f07314db3b51989a8d45ef..a9385a37a8a5dab7b9354ab8c174de055056b59e 100644 (file)
@@ -2,13 +2,22 @@ Syntax 3
 
 Define.ProfileName ""
 
+If.dell-wd15 {
+       Condition {
+               Type RegexMatch
+               String "${CardComponents}"
+               Regex "USB0bda:40(14|2e)"
+       }
+       True.Define.ProfileName "Dell/WD15-Dock"
+}
+
 If.dell-desktop-front {
        Condition {
                Type String
                Haystack "${CardComponents}"
                Needle "USB0bda:4c54"
        }
-       True.Define.ProfileName "Dell-Desktop-Front"
+       True.Define.ProfileName "Dell/Desktop-Front"
 }
 
 If.dell-desktop-rear {
@@ -17,7 +26,7 @@ If.dell-desktop-rear {
                Haystack "${CardComponents}"
                Needle "USB0bda:4c55"
        }
-       True.Define.ProfileName "Dell-Desktop-Rear"
+       True.Define.ProfileName "Dell/Desktop-Rear"
 }
 
 If.inc {