]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-soundwire: Add basic support for cs42l43's speaker
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 23 Apr 2024 15:43:05 +0000 (16:43 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 24 Apr 2024 18:00:03 +0000 (20:00 +0200)
Previous support was added for the mics and headset on cs42l43, expand
this support with additional configuration for the speaker output.

Link: https://lore.kernel.org/alsa-devel/20240423154305.2782347-1-ckeepax@opensource.cirrus.com/
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-soundwire/cs42l43-spk.conf [new file with mode: 0644]

diff --git a/ucm2/sof-soundwire/cs42l43-spk.conf b/ucm2/sof-soundwire/cs42l43-spk.conf
new file mode 100644 (file)
index 0000000..73f1299
--- /dev/null
@@ -0,0 +1,25 @@
+# Use case Configuration for sof-soundwire card
+
+SectionDevice."Speaker" {
+       Comment "Speaker"
+
+       ConflictingDevice [
+               "Headphones"
+       ]
+
+       EnableSequence [
+               cset "name='cs42l43 Speaker L Input 1' 'DP5RX1'"
+               cset "name='cs42l43 Speaker R Input 1' 'DP5RX2'"
+       ]
+
+       DisableSequence [
+               cset "name='cs42l43 Speaker L Input 1' 'None'"
+               cset "name='cs42l43 Speaker R Input 1' 'None'"
+       ]
+
+       Value {
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId},0"
+               PlaybackMixerElem "cs42l43 Speaker Digital"
+       }
+}