]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: sof-soundwire: Add tas2783 support
authorBaojun Xu <baojun.xu@ti.com>
Fri, 17 Jul 2026 08:34:02 +0000 (16:34 +0800)
committerJaroslav Kysela <perex@perex.cz>
Fri, 21 Aug 2026 07:38:40 +0000 (09:38 +0200)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/812
Signed-off-by: Baojun Xu <baojun.xu@ti.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/tas2783/init.conf [new file with mode: 0644]
ucm2/sof-soundwire/sof-soundwire.conf
ucm2/sof-soundwire/tas2783.conf [new file with mode: 0644]

diff --git a/ucm2/codecs/tas2783/init.conf b/ucm2/codecs/tas2783/init.conf
new file mode 100644 (file)
index 0000000..6e4f23d
--- /dev/null
@@ -0,0 +1,9 @@
+# tas2783 specific switch control settings
+
+BootSequence [
+       cset "name='Left Spk' on"
+       cset "name='Right Spk' on"
+       cset "name='Left Spk2' on"
+       cset "name='Right Spk2' on"
+]
+
index 3ccf493042f2cfe8dfcdfd083b5be451b0311013..62398f885fe05b997ebf5949550cac62986ce785 100644 (file)
@@ -134,7 +134,7 @@ If.spk {
        False.If.filter {
                Condition {
                        Type RegexMatch
-                       Regex "(${var:MultiCodecRegex}|rt1318|cs42l43-spk(\\+cs35l56)?|cs35l56((-bridge)|(\\+cs42l43-spk))?)"
+                       Regex "(${var:MultiCodecRegex}|tas2783|rt1318|cs42l43-spk(\\+cs35l56)?|cs35l56((-bridge)|(\\+cs42l43-spk))?)"
                        String "${var:SpeakerCodecFile}"
                }
                True.Include.a.File "/codecs/${var:SpeakerCodecFile}/init.conf"
diff --git a/ucm2/sof-soundwire/tas2783.conf b/ucm2/sof-soundwire/tas2783.conf
new file mode 100644 (file)
index 0000000..2106f94
--- /dev/null
@@ -0,0 +1,24 @@
+# Use case Configuration for sof-soundwire card
+
+SectionDevice."Speaker" {
+       Comment "Speaker"
+
+       EnableSequence [
+               cset "name='Left Spk Switch' on"
+               cset "name='Right Spk Switch' on"
+               cset "name='Left Spk2 Switch' on"
+               cset "name='Right Spk2 Switch' on"
+       ]
+
+       DisableSequence [
+               cset "name='Left Spk Switch' off"
+               cset "name='Right Spk Switch' off"
+               cset "name='Left Spk2 Switch' off"
+               cset "name='Right Spk2 Switch' off"
+       ]
+
+       Value {
+             PlaybackPriority 100
+             PlaybackPCM "hw:${CardId},2"
+       }
+}