From: Christophe Henry Date: Thu, 7 Jul 2022 21:08:58 +0000 (+0200) Subject: ucm2: USB-Audio: Add correct support for Rane SL-1 X-Git-Tag: v1.2.8~17 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=71997c63861c97b52e76129777e517def02d5380;p=alsa-ucm-conf.git ucm2: USB-Audio: Add correct support for Rane SL-1 Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/187 Signed-off-by: Christophe Henry Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/USB-Audio/Rane/SL-1-HiFi.conf b/ucm2/USB-Audio/Rane/SL-1-HiFi.conf new file mode 100644 index 0000000..5068542 --- /dev/null +++ b/ucm2/USB-Audio/Rane/SL-1-HiFi.conf @@ -0,0 +1,45 @@ +SectionDevice."Line1" { + Comment "Line out 1" + + Value { + PlaybackPriority 200 + PlaybackPCM "hw:${CardId},0" + } +} + +SectionDevice."Line2" { + Comment "Line out 2" + + Value { + PlaybackPriority 100 + PlaybackPCM "hw:${CardId},1" + } +} + +SectionDevice."Mic1" { + Comment "Input 1" + + Value { + CapturePriority 300 + CapturePCM "hw:${CardId},0" + } +} + +SectionDevice."Mic2" { + Comment "Input 2" + + Value { + CapturePriority 200 + CapturePCM "hw:${CardId},1" + } +} + +SectionDevice."Mic3" { + Comment "Mic" + + Value { + CapturePriority 100 + CapturePCM "hw:${CardId},2" + CaptureChannels 1 + } +} diff --git a/ucm2/USB-Audio/Rane/SL-1.conf b/ucm2/USB-Audio/Rane/SL-1.conf new file mode 100644 index 0000000..d2f9f76 --- /dev/null +++ b/ucm2/USB-Audio/Rane/SL-1.conf @@ -0,0 +1,6 @@ +Comment "Rane SL-1" + +SectionUseCase."HiFi" { + Comment "Default Alsa Profile" + File "/USB-Audio/Rane/SL-1-HiFi.conf" +} diff --git a/ucm2/USB-Audio/USB-Audio.conf b/ucm2/USB-Audio/USB-Audio.conf index f30c7f0..4b33491 100644 --- a/ucm2/USB-Audio/USB-Audio.conf +++ b/ucm2/USB-Audio/USB-Audio.conf @@ -176,6 +176,15 @@ If.behringer-Flow8-Recording { True.Define.ProfileName "Behringer/Flow8-Recording" } +If.Rane-SL-1 { + Condition { + Type String + Haystack "${CardComponents}" + Needle "USB13e5:0001" + } + True.Define.ProfileName "Rane/SL-1" +} + If.lenovo-p620-rear { Condition { Type String