]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: sof-soundwire: add basic settings for RT1318 SDCA device
authorShuming Fan <shumingf@realtek.com>
Wed, 16 Nov 2022 09:36:51 +0000 (17:36 +0800)
committerJaroslav Kysela <perex@perex.cz>
Wed, 16 Nov 2022 14:54:17 +0000 (15:54 +0100)
Add support for rt1318 amplifier

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/242
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-soundwire/rt1318-1.conf [new file with mode: 0644]
ucm2/sof-soundwire/rt1318-2.conf [new file with mode: 0644]

diff --git a/ucm2/sof-soundwire/rt1318-1.conf b/ucm2/sof-soundwire/rt1318-1.conf
new file mode 100644 (file)
index 0000000..13d77e1
--- /dev/null
@@ -0,0 +1,20 @@
+# Use case Configuration for sof-soundwire card
+
+SectionDevice."Speaker" {
+       Comment "Speaker"
+
+       EnableSequence [
+               cset "name='rt1318-1 DAC Switch' 1"
+               cset "name='Speaker Switch' on"
+       ]
+
+       DisableSequence [
+               cset "name='rt1318-1 DAC Switch' 0"
+               cset "name='Speaker Switch' off"
+       ]
+
+       Value {
+             PlaybackPriority 100
+             PlaybackPCM "hw:${CardId},2"
+       }
+}
diff --git a/ucm2/sof-soundwire/rt1318-2.conf b/ucm2/sof-soundwire/rt1318-2.conf
new file mode 100644 (file)
index 0000000..5602470
--- /dev/null
@@ -0,0 +1,25 @@
+# Use case Configuration for sof-soundwire card
+
+SectionDevice."Speaker" {
+       Comment "Speaker"
+
+       EnableSequence [
+               cset "name='rt1318-1 RX Channel Select' L,L"
+               cset "name='rt1318-2 RX Channel Select' R,R"
+
+               cset "name='rt1318-1 DAC Switch' 1"
+               cset "name='rt1318-2 DAC Switch' 1"
+               cset "name='Speaker Switch' on"
+       ]
+
+       DisableSequence [
+               cset "name='rt1318-1 DAC Switch' 0"
+               cset "name='rt1318-2 DAC Switch' 0"
+               cset "name='Speaker Switch' off"
+       ]
+
+       Value {
+             PlaybackPriority 100
+             PlaybackPCM "hw:${CardId},2"
+       }
+}