]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: sof-soundwire: add rt712-vb device
authorShuming Fan <shumingf@realtek.com>
Fri, 6 Jun 2025 04:47:08 +0000 (12:47 +0800)
committerJaroslav Kysela <perex@perex.cz>
Fri, 20 Jun 2025 10:20:52 +0000 (12:20 +0200)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/573
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/rt712/init.conf
ucm2/sof-soundwire/rt712.conf

index e09bf7feb36b9943782b16734935d504b77f7fbc..1e453801cbb780d1b654648c84f7fa1bededff3c 100644 (file)
@@ -1,8 +1,30 @@
 # RT712 specific volume control settings
 
-BootSequence [
-       cset "name='rt712 FU05 Playback Volume' 87"
-       cset "name='rt712 ADC 23 Mux' 'MIC2'"
-       cset "name='rt712 FU0F Capture Volume' 57"
-       cset "name='rt712 FU0F Capture Switch' 1"
-]
+If.rt712_init {
+       Condition {
+               Type RegexMatch
+               Regex "(rt712(-sdca)?)"
+               String "${var:MultiMicShadow}"
+       }
+       True {
+               # RT712-VB integrated with DMIC
+               BootSequence [
+                       cset "name='rt712 FU05 Playback Volume' 87"
+                       cset "name='rt712 ADC 23 Mux' 'MIC2'"
+                       cset "name='rt712 FU0F Capture Volume' 57"
+                       cset "name='rt712 FU0F Capture Switch' 1"
+                       cset "name='rt712 FU1E Capture Switch' 1"
+                       cset "name='rt712 FU1E Capture Volume' 47"
+                       cset "name='rt712 ADC 0A Mux' 'DMIC1'"
+                       cset "name='rt712 ADC 0B Mux' 'DMIC2'"
+               ]
+       }
+       False {
+               BootSequence [
+                       cset "name='rt712 FU05 Playback Volume' 87"
+                       cset "name='rt712 ADC 23 Mux' 'MIC2'"
+                       cset "name='rt712 FU0F Capture Volume' 57"
+                       cset "name='rt712 FU0F Capture Switch' 1"
+               ]
+       }
+}
index 409bef942c756d03bae49d48dd326a3541314da5..346cff13a9e3ad7b58c988a3ff1c3b5dcb662b35 100644 (file)
@@ -85,3 +85,32 @@ SectionDevice."Headset" {
                JackControl "Headset Mic Jack"
        }
 }
+
+If.codecmic {
+       Condition {
+               Type RegexMatch
+               Regex "(rt712(-sdca)?)"
+               String "${var:MultiMicShadow}"
+       }
+       True {
+               SectionDevice."Mic" {
+                       Comment "SoundWire Microphones"
+
+                       EnableSequence [
+                               cset "name='rt712 FU1E Capture Switch' 1"
+                       ]
+
+                       DisableSequence [
+                               cset "name='rt712 FU1E Capture Switch' 0"
+                       ]
+
+                       Value {
+                               CapturePriority 100
+                               CapturePCM "hw:${CardId},4"
+                               CaptureSwitch "rt712 FU1E Capture Switch"
+                               CaptureVolume "rt712 FU1E Capture Volume"
+                               CaptureMixerElem "rt712 FU1E"
+                       }
+               }
+       }
+}