Skip to content

Commit

Permalink
ucm2: USB-Audio: add Steinberg UR22C (USB0499:172f)
Browse files Browse the repository at this point in the history
Similar to UR24C and UR44C, but with 2 inputs 2 outputs.

Closes: #446
Signed-off-by: Celeste Liu <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
CoelacanthusHex authored and perexg committed Oct 15, 2024
1 parent ab6b9d0 commit 46f9c1a
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
55 changes: 55 additions & 0 deletions ucm2/USB-Audio/Steinberg/UR22C-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Include.pcm_split.File "/common/pcm/split.conf"

Macro [
{
SplitPCM {
Name "steinberg_ur22c_mono_in"
Direction Capture
Channels 1
HWChannels 2
HWChannelPos0 MONO
HWChannelPos1 MONO
}
}
]

SectionDevice."Line 1" {
Comment "Stereo Line (output)"

Value {
PlaybackPriority 200
PlaybackPCM "hw:${CardId}"
}
}

SectionDevice."Line 2" {
Comment "Mono Line (input 1)"

Value {
CapturePriority 600
}
Macro.pcm_split.SplitPCMDevice {
Name "steinberg_ur22c_mono_in"
Direction Capture
HWChannels 2
Channels 1
Channel0 0
ChannelPos0 MONO
}
}

SectionDevice."Line 3" {
Comment "Mono Line (input 2)"

Value {
CapturePriority 500
}
Macro.pcm_split.SplitPCMDevice {
Name "steinberg_ur22c_mono_in"
Direction Capture
HWChannels 2
Channels 1
Channel0 1
ChannelPos0 MONO
}
}
11 changes: 11 additions & 0 deletions ucm2/USB-Audio/Steinberg/UR22C.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Comment "Steinberg UR22C USB-Audio"

SectionUseCase."HiFi" {
Comment "HiFi"
File "/USB-Audio/Steinberg/UR22C-HiFi.conf"
}

Define.DirectPlaybackChannels 2
Define.DirectCaptureChannels 2

Include.dhw.File "/common/direct.conf"
9 changes: 9 additions & 0 deletions ucm2/USB-Audio/USB-Audio.conf
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,15 @@ If.gigabyte-aorus-main {
True.Define.ProfileName "Gigabyte/Aorus-Master-Main-Audio"
}

If.steinberg-ur22c {
Condition {
Type String
Haystack "${CardComponents}"
Needle "USB0499:172f"
}
True.Define.ProfileName "Steinberg/UR22C"
}

If.steinberg-ur24c {
Condition {
Type String
Expand Down

0 comments on commit 46f9c1a

Please sign in to comment.