]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: Add support for Solid State Labs SSL 2
authorSophie Tauchert <sophie@999eagle.moe>
Wed, 10 Jan 2024 09:07:14 +0000 (10:07 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 15 Jan 2024 13:38:52 +0000 (14:38 +0100)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/377
Signed-off-by: Sophie Tauchert <sophie@999eagle.moe>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/SolidStateLabs/SSL2-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/SolidStateLabs/SSL2.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.conf

diff --git a/ucm2/USB-Audio/SolidStateLabs/SSL2-HiFi.conf b/ucm2/USB-Audio/SolidStateLabs/SSL2-HiFi.conf
new file mode 100644 (file)
index 0000000..46b2e26
--- /dev/null
@@ -0,0 +1,55 @@
+Include.pcm_split.File "/common/pcm/split.conf"
+
+Macro [
+       {
+               SplitPCM {
+                       Name "ssl2_mono_in"
+                       Direction Capture
+                       Channels 1
+                       HWChannels 2
+                       HWChannelPos0 MONO
+                       HWChannelPos1 MONO
+               }
+       }
+]
+
+SectionDevice."Line1" {
+       Comment "Stereo Line"
+
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId}"
+       }
+}
+
+SectionDevice."Mic1" {
+       Comment "Mic/Line/Inst 1"
+
+       Value {
+               CapturePriority 200
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "ssl2_mono_in"
+               Direction Capture
+               HWChannels 2
+               Channels 1
+               Channel0 0
+               ChannelPos0 MONO
+       }
+}
+
+SectionDevice."Mic2" {
+       Comment "Mic/Line/Inst 2"
+
+       Value {
+               CapturePriority 100
+       }
+       Macro.pcm_split.SplitPCMDevice {
+               Name "ssl2_mono_in"
+               Direction Capture
+               HWChannels 2
+               Channels 1
+               Channel0 1
+               ChannelPos0 MONO
+       }
+}
diff --git a/ucm2/USB-Audio/SolidStateLabs/SSL2.conf b/ucm2/USB-Audio/SolidStateLabs/SSL2.conf
new file mode 100644 (file)
index 0000000..5531834
--- /dev/null
@@ -0,0 +1,11 @@
+Comment "Solid State Labs SSL 2"
+
+SectionUseCase."HiFi" {
+       Comment "HiFi"
+       File "/USB-Audio/SolidStateLabs/SSL2-HiFi.conf"
+}
+
+Define.DirectPlaybackChannels 2
+Define.DirectCaptureChannels 2
+
+Include.dhw.File "/common/direct.conf"
index dd20df3800117dd596e63bed8973a298696c2c24..d83065885c8e8973113097c9b4cb449919300510 100644 (file)
@@ -368,6 +368,17 @@ If.zedi10 {
        True.Define.ProfileName "AllenAndHeath/Zedi10"
 }
 
+If.ssl2 {
+       Condition {
+               Type String
+               Haystack "${CardComponents}"
+               Needle "USB31e9:0001"
+       }
+       True.Define {
+               ProfileName "SolidStateLabs/SSL2"
+       }
+}
+
 If.mixremap {
        Condition {
                Type String