Add initial Roland Quad-Capture support
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/494
Signed-off-by: Björn Martins Paz <bjornmp.dev@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
--- /dev/null
+Include.pcm_split.File "/common/pcm/split.conf"
+
+Macro [
+ {
+ SplitPCM {
+ Name "qc_stereo_out"
+ Direction Playback
+ Channels 2
+ HWChannels 4
+ HWChannelPos0 FL
+ HWChannelPos1 FR
+ HWChannelPos2 FL
+ HWChannelPos3 FR
+ }
+ }
+ {
+ SplitPCM {
+ Name "qc_input"
+ Direction Capture
+ Channels 2
+ HWChannels 6
+ HWChannelPos0 MONO
+ HWChannelPos1 MONO
+ HWChannelPos2 FL
+ HWChannelPos3 FR
+ HWChannelPos4 FL
+ HWChannelPos5 FR
+ }
+ }
+]
+
+SectionDevice."Line1" {
+ Comment "3-4 (Coaxial)"
+
+ Value {
+ PlaybackPriority 200
+ }
+
+ Macro.pcm_split.SplitPCMDevice {
+ Name "qc_stereo_out"
+ Direction Playback
+ HWChannels 4
+ Channels 2
+ Channel0 2
+ Channel1 3
+ ChannelPos0 FL
+ ChannelPos1 FR
+ }
+}
+
+SectionDevice."Line2" {
+ Comment "1-2 (Main)"
+
+ Value {
+ PlaybackPriority 100
+ }
+
+ Macro.pcm_split.SplitPCMDevice {
+ Name "qc_stereo_out"
+ Direction Playback
+ HWChannels 4
+ Channels 2
+ Channel0 0
+ Channel1 1
+ ChannelPos0 FL
+ ChannelPos1 FR
+ }
+}
+
+SectionDevice."Line3" {
+ Comment "3-4 (Coaxial)"
+
+ Value {
+ CapturePriority 300
+ }
+ Macro.pcm_split.SplitPCMDevice {
+ Name "qc_input"
+ Direction Capture
+ HWChannels 6
+ Channels 2
+ Channel0 2
+ Channel1 3
+ ChannelPos0 FL
+ ChannelPos1 FR
+ }
+}
+
+SectionDevice."Line4" {
+ Comment "1-2 (1L+2R)"
+
+ Value {
+ CapturePriority 200
+ }
+ Macro.pcm_split.SplitPCMDevice {
+ Name "qc_input"
+ Direction Capture
+ HWChannels 6
+ Channels 2
+ Channel0 0
+ Channel1 1
+ ChannelPos0 MONO
+ ChannelPos1 MONO
+ }
+}
--- /dev/null
+Comment "Roland Quad-Capture"
+
+SectionUseCase."HiFi" {
+ Comment "Roland Quand-Capture"
+ File "/USB-Audio/Roland/Quad-Capture-HiFi.conf"
+}
True.Define.ProfileName "BOSS/Katana"
}
+If.roland-quadcapture {
+ Condition {
+ Type String
+ Haystack "${CardComponents}"
+ Needle "USB0582:012f"
+ }
+ True.Define.ProfileName "Roland/Quad-Capture"
+}
+
If.roland-bridgecast {
Condition {
Type String