Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add profile for Behringer UMC204HD #128

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
120 changes: 120 additions & 0 deletions ucm2/USB-Audio/Behringer/UMC204HD-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
LibraryConfig.pcm.Config {
pcm.umc204hd_stereo_out {
@args [ CARD CHN0 CHN1 ]
@args {
CARD.type string
CHN0.type integer
CHN1.type integer
}
type dshare
ipc_key 572442
ipc_perm 0600
slave {
pcm {
type hw
card $CARD
device 0
}
channels 4
}
bindings.0 $CHN0
bindings.1 $CHN1
}

pcm.umc204hd_mono_in {
@args [ CARD CHN0 CHN1 ]
brndd marked this conversation as resolved.
Show resolved Hide resolved
@args {
CARD.type string
CHN0.type integer
CHN1.type integer
}
type dsnoop
ipc_key 572542
ipc_perm 0600
slave {
pcm {
type hw
card $CARD
device 0
}
channels 2
}
bindings.0 $CHN0
bindings.1 $CHN1
brndd marked this conversation as resolved.
Show resolved Hide resolved
}

pcm.umc204hd_line1 {
@args [ CARD ]
@args.CARD.type string
type empty
slave.pcm {
@func concat
strings [ "umc204hd_stereo_out:" $CARD ",0,1" ]
}
}

pcm.umc204hd_line2 {
@args [ CARD ]
@args.CARD.type string
type empty
slave.pcm {
@func concat
strings [ "umc204hd_stereo_out:" $CARD ",2,3" ]
}
}

pcm.umc204hd_mic1 {
@args [ CARD ]
@args.CARD.type string
type empty
slave.pcm {
@func concat
strings [ "umc204hd_mono_in:" $CARD ",0,0" ]
brndd marked this conversation as resolved.
Show resolved Hide resolved
}
}

pcm.umc204hd_mic2 {
@args [ CARD ]
@args.CARD.type string
type empty
slave.pcm {
@func concat
strings [ "umc204hd_mono_in:" $CARD ",1,1" ]
}
}
}

SectionDevice."Line1" {
Comment "Line A"
Value {
PlaybackPriority 100
PlaybackPCM "umc204hd_line1:${CardId}"
}
}

SectionDevice."Line2" {
Comment "Line B"

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

SectionDevice."Mic1" {
Comment "Input 1"

Value {
CapturePriority 100
CapturePCM "umc204hd_mic1:${CardId}"
}
}

SectionDevice."Mic2" {
Comment "Input 2"

Value {
CapturePriority 200
CapturePCM "umc204hd_mic2:${CardId}"
}
}
5 changes: 5 additions & 0 deletions ucm2/USB-Audio/Behringer/UMC204HD.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Comment "Behringer UMC204HD"
SectionUseCase."HiFi" {
Comment "Default Alsa Profile"
File "/USB-Audio/Behringer/UMC204HD-HiFi.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 @@ -91,6 +91,15 @@ If.lenovo-p620-main {
True.Define.ProfileName "Lenovo/ThinkStation-P620-Main"
}

If.behringer-umc204hd {
Condition {
Type String
Haystack "${CardComponents}"
Needle "USB1397:0508"
}
True.Define.ProfileName "Behringer/UMC204HD"
}

If.inc {
Condition {
Type String
Expand Down