Macro [
{
SplitPCM {
- Name "scarlett2i4_stereo_out"
+ Name "scarlett2i_stereo_out"
Direction Playback
Format S32_LE
Channels 2
}
{
SplitPCM {
- Name "scarlett2i4_mono_in"
+ Name "scarlett2i_mono_in"
Direction Capture
Format S32_LE
Channels 1
PlaybackPriority 200
}
Macro.pcm_split.SplitPCMDevice {
- Name "scarlett2i4_stereo_out"
+ Name "scarlett2i_stereo_out"
Direction Playback
HWChannels 4
Channels 2
}
}
-SectionDevice."Line2" {
- Comment "Line 3-4"
-
- Value {
- PlaybackPriority 100
+If.scarlett_2i4 {
+ Condition {
+ Type String
+ String1 "${var:PlaybackChannels}"
+ String2 "4"
}
- Macro.pcm_split.SplitPCMDevice {
- Name "scarlett2i4_stereo_out"
- Direction Playback
- HWChannels 4
- Channels 2
- Channel0 2
- Channel1 3
- ChannelPos0 FL
- ChannelPos1 FR
+ True.SectionDevice."Line2" {
+ Comment "Line 3-4"
+
+ Value {
+ PlaybackPriority 100
+ }
+ Macro.pcm_split.SplitPCMDevice {
+ Name "scarlett2i_stereo_out"
+ Direction Playback
+ HWChannels 4
+ Channels 2
+ Channel0 2
+ Channel1 3
+ ChannelPos0 FL
+ ChannelPos1 FR
+ }
}
}
CapturePriority 200
}
Macro.pcm_split.SplitPCMDevice {
- Name "scarlett2i4_mono_in"
+ Name "scarlett2i_mono_in"
Direction Capture
HWChannels 2
Channels 1
CapturePriority 100
}
Macro.pcm_split.SplitPCMDevice {
- Name "scarlett2i4_mono_in"
+ Name "scarlett2i_mono_in"
Direction Capture
HWChannels 2
Channels 1
--- /dev/null
+Define.PlaybackChannels 4
+
+If.scarlett_2i4 {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "USB1235:8202"
+ }
+ True.Define.PlaybackChannels 2
+}
+
+Comment "Focusrite Scarlett 2i${var:PlaybackChannels} Gen 2"
+
+SectionUseCase."HiFi" {
+ Comment "Default"
+ File "/USB-Audio/Focusrite/Scarlett-2i-gen2-HiFi.conf"
+}
+
+Define.DirectPlaybackChannels "${var:PlaybackChannels}"
+Define.DirectCaptureChannels 2
+
+Include.dhw.File "/common/direct.conf"
+++ /dev/null
-Comment "Focusrite Scarlett 2i4 Gen 2"
-
-SectionUseCase."HiFi" {
- Comment "Default"
- File "/USB-Audio/Focusrite/Scarlett-2i4-gen2-HiFi.conf"
-}
-
-Define.DirectPlaybackChannels 4
-Define.DirectCaptureChannels 2
-
-Include.dhw.File "/common/direct.conf"
True.Define.ProfileName "GoXLR/GoXLR"
}
-If.focusrite-scarlett-2i4-gen2 {
+If.focusrite-scarlett-2i-gen2 {
Condition {
- Type String
- Haystack "${CardComponents}"
- Needle "USB1235:8200"
+ Type RegexMatch
+ String "${CardComponents}"
+ Regex "USB1235:820[02]"
}
True.Define {
- ProfileName "Focusrite/Scarlett-2i4-gen2"
+ ProfileName "Focusrite/Scarlett-2i-gen2"
}
}