-
Notifications
You must be signed in to change notification settings - Fork 208
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
Include.pcm_split.File "/common/pcm/split.conf" | ||
|
||
Macro [ | ||
{ | ||
SplitPCM { | ||
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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add |
||
PlaybackMixer "default:${CardId}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this line. |
||
PlaybackMixerElem "Line A" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change this to |
||
} | ||
Macro.pcm_split.SplitPCMDevice { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
} | ||
} |
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" |
There was a problem hiding this comment.
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.