]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: merge configs for Solid State Labs SSL 2 (normal + plus + MK II)
authorJaroslav Kysela <perex@perex.cz>
Thu, 22 Jan 2026 15:15:53 +0000 (16:15 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 22 Jan 2026 15:24:21 +0000 (16:24 +0100)
Link: https://github.com/alsa-project/alsa-ucm-conf/issues/676
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/SolidStateLabs/SSL2-HiFi.conf
ucm2/USB-Audio/SolidStateLabs/SSL2.conf
ucm2/USB-Audio/SolidStateLabs/SSL2Plus-HiFi.conf [deleted file]
ucm2/USB-Audio/SolidStateLabs/SSL2Plus.conf [deleted file]
ucm2/USB-Audio/USB-Audio.conf

index 34cac9c7e3b44c8406731308da07e3f83ea4be0a..8e39b8612eeb971c09d7e813bd7d111df6feb5a1 100644 (file)
@@ -13,12 +13,73 @@ Macro [
        }
 ]
 
-SectionDevice."Line1" {
-       Comment "Stereo Line"
+If.chn4 {
+       Condition {
+               Type String
+               String1 "${var:DirectPlaybackChannels}"
+               String2 "4"
+       }
+       True {
+               Macro [
+                       {
+                               SplitPCM {
+                                       Name "ssl2_stereo_out"
+                                       Direction Playback
+                                       Channels 2
+                                       HWChannels "${var:DirectPlaybackChannels}"
+                                       HWChannelPos0 FL
+                                       HWChannelPos1 FR
+                                       HWChannelPos2 FL
+                                       HWChannelPos3 FR
+                               }
+                       }
+               ]
 
-       Value {
-               PlaybackPriority 200
-               PlaybackPCM "hw:${CardId}"
+               SectionDevice."Line1" {
+                       Comment "Line Outputs 1/L + 2/R"
+
+                       Value {
+                               PlaybackPriority 200
+                       }
+                       Macro.pcm_split.SplitPCMDevice {
+                               Name "ssl2_stereo_out"
+                               Direction Playback
+                               HWChannels "${var:DirectPlaybackChannels}"
+                               Channels 2
+                               Channel0 0
+                               Channel1 1
+                               ChannelPos0 FL
+                               ChannelPos1 FR
+                       }
+               }
+
+               SectionDevice."Line2" {
+                       Comment "Line Outputs 3 + 4"
+
+                       Value {
+                               PlaybackPriority 100
+                       }
+                       Macro.pcm_split.SplitPCMDevice {
+                               Name "ssl2_stereo_out"
+                               Direction Playback
+                               HWChannels "${var:DirectPlaybackChannels}"
+                               Channels 2
+                               Channel0 2
+                               Channel1 3
+                               ChannelPos0 FL
+                               ChannelPos1 FR
+                       }
+               }
+       }
+       False {
+               SectionDevice."Line1" {
+                       Comment "Stereo Line"
+
+                       Value {
+                               PlaybackPriority 200
+                               PlaybackPCM "hw:${CardId}"
+                       }
+               }
        }
 }
 
index ea5d16171fe721c4683c0170229ccfb11b29af63..3df2fac507c27c606d30a09f3c26942612afb48a 100644 (file)
@@ -3,6 +3,17 @@ Comment "Solid State Labs SSL 2"
 Define.DirectPlaybackChannels 2
 Define.DirectCaptureChannels 4
 
+If.plus {
+       Condition {
+               Type RegexMatch
+               String "${CardComponents}"
+               # 0002 MK I
+               # 0009 MK II
+               Regex "USB31e9:000[29]"
+       }
+       True.Define.DirectPlaybackChannels 4
+}
+
 If.fw {
        Condition {
                Type RegexMatch
diff --git a/ucm2/USB-Audio/SolidStateLabs/SSL2Plus-HiFi.conf b/ucm2/USB-Audio/SolidStateLabs/SSL2Plus-HiFi.conf
deleted file mode 100644 (file)
index 30160d3..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-Include.pcm_split.File "/common/pcm/split.conf"
-
-Macro [
-       {
-               SplitPCM {
-                       Name "ssl2plus_stereo_out"
-                       Direction Playback
-                       Channels 2
-                       HWChannels 4
-                       HWChannelPos0 FL
-                       HWChannelPos1 FR
-                       HWChannelPos2 FL
-                       HWChannelPos3 FR
-               }
-       }
-       {
-               SplitPCM {
-                       Name "ssl2plus_mono_in"
-                       Direction Capture
-                       Channels 1
-                       HWChannels 4
-                       HWChannelPos0 MONO
-                       HWChannelPos1 MONO
-               }
-       }
-]
-
-SectionDevice."Line1" {
-       Comment "Line Outputs 1/L + 2/R"
-
-       Value {
-               PlaybackPriority 200
-       }
-       Macro.pcm_split.SplitPCMDevice {
-               Name "ssl2plus_stereo_out"
-               Direction Playback
-               HWChannels 4
-               Channels 2
-               Channel0 0
-               Channel1 1
-               ChannelPos0 FL
-               ChannelPos1 FR
-       }
-}
-
-SectionDevice."Line2" {
-       Comment "Line Outputs 3 + 4"
-
-       Value {
-               PlaybackPriority 100
-       }
-       Macro.pcm_split.SplitPCMDevice {
-               Name "ssl2plus_stereo_out"
-               Direction Playback
-               HWChannels 4
-               Channels 2
-               Channel0 2
-               Channel1 3
-               ChannelPos0 FL
-               ChannelPos1 FR
-       }
-}
-
-SectionDevice."Mic1" {
-       Comment "Mic/Line/Inst 1"
-
-       Value {
-               CapturePriority 200
-       }
-       Macro.pcm_split.SplitPCMDevice {
-               Name "ssl2plus_mono_in"
-               Direction Capture
-               HWChannels 4
-               Channels 1
-               Channel0 0
-               ChannelPos0 MONO
-       }
-}
-
-SectionDevice."Mic2" {
-       Comment "Mic/Line/Inst 2"
-
-       Value {
-               CapturePriority 100
-       }
-       Macro.pcm_split.SplitPCMDevice {
-               Name "ssl2plus_mono_in"
-               Direction Capture
-               HWChannels 4
-               Channels 1
-               Channel0 1
-               ChannelPos0 MONO
-       }
-}
diff --git a/ucm2/USB-Audio/SolidStateLabs/SSL2Plus.conf b/ucm2/USB-Audio/SolidStateLabs/SSL2Plus.conf
deleted file mode 100644 (file)
index c15bdef..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-Comment "Solid State Labs SSL 2+"
-
-SectionUseCase."HiFi" {
-       Comment "HiFi"
-       File "/USB-Audio/SolidStateLabs/SSL2Plus-HiFi.conf"
-}
-
-Include.dhw.File "/common/directm.conf"
-
-Macro.0.DirectUseCase { Id="Direct" PlaybackChannels=4 CaptureChannels=4 }
index 6e04e413d377a8d4f4c5a43f206c3ae3eff058c9..4c36aaaee22055cedd076d4609b472a1c59bc641 100644 (file)
@@ -628,26 +628,16 @@ If.ssl2 {
                Type RegexMatch
                String "${CardComponents}"
                # 0001 MK I
+               # 0002 Plus MK I
                # 0008 MK II
-               Regex "USB31e9:000[18]"
+               # 0009 Plus MK II
+               Regex "USB31e9:000[1289]"
        }
        True.Define {
                ProfileName "SolidStateLabs/SSL2"
        }
 }
 
-If.ssl2plus {
-       Condition {
-               Type RegexMatch
-               String "${CardComponents}"
-               # 0002 MK I
-               # 0009 MK II
-               Regex "USB31e9:000[29]"
-       }
-       True.Define {
-               ProfileName "SolidStateLabs/SSL2Plus"
-       }
-}
 If.beacn-mic {
        Condition {
                Type String