]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: USB-Audio: Add correct support for Rane SL-1
authorChristophe Henry <contact@c-henry.fr>
Thu, 7 Jul 2022 21:08:58 +0000 (23:08 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 16 Sep 2022 18:11:36 +0000 (20:11 +0200)
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/187
Signed-off-by: Christophe Henry <contact@c-henry.fr>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Rane/SL-1-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/Rane/SL-1.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/Rane/SL-1-HiFi.conf b/ucm2/USB-Audio/Rane/SL-1-HiFi.conf
new file mode 100644 (file)
index 0000000..5068542
--- /dev/null
@@ -0,0 +1,45 @@
+SectionDevice."Line1" {
+       Comment "Line out 1"
+
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId},0"
+       }
+}
+
+SectionDevice."Line2" {
+       Comment "Line out 2"
+
+       Value {
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId},1"
+       }
+}
+
+SectionDevice."Mic1" {
+       Comment "Input 1"
+
+       Value {
+               CapturePriority 300
+               CapturePCM "hw:${CardId},0"
+       }
+}
+
+SectionDevice."Mic2" {
+       Comment "Input 2"
+
+       Value {
+               CapturePriority 200
+               CapturePCM "hw:${CardId},1"
+       }
+}
+
+SectionDevice."Mic3" {
+       Comment "Mic"
+
+       Value {
+               CapturePriority 100
+               CapturePCM "hw:${CardId},2"
+               CaptureChannels 1
+       }
+}
diff --git a/ucm2/USB-Audio/Rane/SL-1.conf b/ucm2/USB-Audio/Rane/SL-1.conf
new file mode 100644 (file)
index 0000000..d2f9f76
--- /dev/null
@@ -0,0 +1,6 @@
+Comment "Rane SL-1"
+
+SectionUseCase."HiFi" {
+       Comment "Default Alsa Profile"
+       File "/USB-Audio/Rane/SL-1-HiFi.conf"
+}
index f30c7f000df1ca6577efc14dc6d6f59d5db7436f..4b33491827bd028e8d31c863df672bde1ff3adab 100644 (file)
@@ -176,6 +176,15 @@ If.behringer-Flow8-Recording {
        True.Define.ProfileName "Behringer/Flow8-Recording"
 }
 
+If.Rane-SL-1 {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Needle "USB13e5:0001"
+       }
+       True.Define.ProfileName "Rane/SL-1"
+}
+
 If.lenovo-p620-rear {
        Condition {
                Type String