Skip to content

Commit 3753c50

Browse files
committed
Behringer UCM204HD - use S32_LE format for dshare/dsnoop
BugLink: #192 Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent ae0df06 commit 3753c50

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

ucm2/USB-Audio/Behringer/UMC204HD-HiFi.conf

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Macro [
55
SplitPCM {
66
Name "umc204hd_stereo_out"
77
Direction Playback
8+
Format S32_LE
89
Channels 2
910
HWChannels 4
1011
HWChannelPos0 FL
@@ -17,6 +18,7 @@ Macro [
1718
SplitPCM {
1819
Name "umc204hd_mono_in"
1920
Direction Capture
21+
Format S32_LE
2022
Channels 1
2123
HWChannels 2
2224
HWChannelPos0 MONO

ucm2/common/pcm/split.conf

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# Arguments:
1212
# Name - PCM name (alsa-lib)
1313
# Direction - "Playback" or "Capture"
14+
# [Format] - sample format like S16_LE or S32_LE
1415
# Channels - application channels
1516
# HWChannels - hardware channels
1617
# HWChannelPos0 - channel position (MONO FR FL etc. - see alsa-lib's strings)
@@ -39,6 +40,13 @@ DefineMacro.SplitPCM.If.0 {
3940
True.Define.__buffer_time 500000
4041
False.Define.__buffer_time "${var:SplitPCMBufferTime}"
4142
}
43+
If.format {
44+
Condition {
45+
Type String
46+
Empty "${var:-__Format}"
47+
}
48+
True.Define.__Format S16_LE
49+
}
4250

4351
LibraryConfig.pcm.SubstiConfig.pcm."${var:__Name}" {
4452
@args [ CARD DEV CHN0 ]
@@ -56,6 +64,7 @@ DefineMacro.SplitPCM.If.0 {
5664
device $DEV
5765
chmap [ "${var:__HWChannelPos0}" ]
5866
}
67+
format "${var:__Format}"
5968
channels "${evali:$__HWChannels}"
6069
period_time "${evali:$__period_time}"
6170
buffer_time "${evali:$__buffer_time}"

0 commit comments

Comments
 (0)