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 UMC202HD #188

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 116 additions & 0 deletions ucm2/USB-Audio/Behringer/UMC202HD-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
Include.pcm_split.File "/common/pcm/split.conf"

Macro [
{
SplitPCM {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required. There is no requirement to split the stream which has already 2 channels.

Name "umc202hd_stereo_out"
Direction Playback
Channels 2
HWChannels 2
HWChannelPos0 FL
HWChannelPos1 FR
}
}
{
SplitPCM {
Name "umc202hd_mono_in"
Direction Capture
Channels 1
HWChannels 2
HWChannelPos0 MONO
HWChannelPos1 MONO
}
}
]

Define.PCMCTLName "PCM Playback"

If.pcm_controls {
Condition {
Type ControlExists
Control "name='UMC202HD 192k Output Playback Switch'"
}
True.Define.PCMCTLName "UMC202HD 192k Output Playback"
}

Include.ctl_remap.File "/common/ctl/remap.conf"

Macro [
{
CtlRemapStereoVolSw {
Dst "Line A Playback"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required. The switch / volume controls have only 2 values.

Src "${var:PCMCTLName}"
Index0 0
Index1 1
}
}
{
CtlRemapMonoVolSw {
Dst "Input 1 Capture"
Src "Mic Capture"
Index 0
}
}
{
CtlRemapMonoVolSw {
Dst "Input 2 Capture"
Src "Mic Capture"
Index 1
}
}
]

SectionDevice."Line1" {
Comment "Line A"
Value {
PlaybackPriority 200
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add PlaybackPCM "hw:${CardId}" here.

PlaybackMixer "default:${CardId}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line.

PlaybackMixerElem "Line A"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to PlaybackMixerElem "UMC202HD 192k Output" resp. PlaybackMixerElem "${var:PCMPlaybackElem}" and define PCMPlaybackElem variable.

}
Macro.pcm_split.SplitPCMDevice {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this block.

Name "umc202hd_stereo_out"
Direction Playback
HWChannels 2
Channels 2
Channel0 0
Channel1 1
ChannelPos0 FL
ChannelPos1 FR
}
}

SectionDevice."Mic1" {
Comment "Input 1"

Value {
CapturePriority 200
CaptureMixer "default:${CardId}"
CaptureMixerElem "Input 1"
}
Macro.pcm_split.SplitPCMDevice {
Name "umc202hd_mono_in"
Direction Capture
HWChannels 2
Channels 1
Channel0 0
ChannelPos0 MONO
}
}

SectionDevice."Mic2" {
Comment "Input 2"

Value {
CapturePriority 100
CaptureMixer "default:${CardId}"
CaptureMixerElem "Input 2"
}
Macro.pcm_split.SplitPCMDevice {
Name "umc202hd_mono_in"
Direction Capture
HWChannels 2
Channels 1
Channel0 1
ChannelPos0 MONO
}
}
11 changes: 11 additions & 0 deletions ucm2/USB-Audio/Behringer/UMC202HD.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Comment "Behringer UMC202HD"

SectionUseCase."HiFi" {
Comment "Default"
File "/USB-Audio/Behringer/UMC202HD-HiFi.conf"
}

Define.DirectPlaybackChannels 2
Define.DirectCaptureChannels 2

Include.dhw.File "/common/direct.conf"
12 changes: 12 additions & 0 deletions ucm2/USB-Audio/USB-Audio.conf
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,18 @@ If.goxlr {
True.Define.ProfileName "GoXLR/GoXLR"
}

If.behringer-umc202hd {
Condition {
Type String
Haystack "${CardComponents}"
Needle "USB1397:0507"
}
True.Define {
ProfileName "Behringer/UMC202HD"
MixerRemap yes
}
}

If.behringer-umc204hd {
Condition {
Type String
Expand Down