diff mbox series

[alsa-ucm-conf,2/2] sof-soundwire: Add basic support for a 4x cs35l56 configuration

Message ID 20231205142420.1256042-2-ckeepax@opensource.cirrus.com
State New
Headers show
Series [alsa-ucm-conf,1/2] sof-soundwire: Add basic support for cs42l43 | expand

Commit Message

Charles Keepax Dec. 5, 2023, 2:24 p.m. UTC
cs35l56 is a boosted speaker amp add UCM support for a 4 amp
configuration.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
---
 ucm2/sof-soundwire/cs35l56-4.conf | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 ucm2/sof-soundwire/cs35l56-4.conf
diff mbox series

Patch

diff --git a/ucm2/sof-soundwire/cs35l56-4.conf b/ucm2/sof-soundwire/cs35l56-4.conf
new file mode 100644
index 0000000..f5af1e4
--- /dev/null
+++ b/ucm2/sof-soundwire/cs35l56-4.conf
@@ -0,0 +1,24 @@ 
+# Use case Configuration for sof-soundwire card
+
+SectionDevice."Speaker" {
+	Comment "Speaker"
+
+	EnableSequence [
+		cset "name='AMP1 Speaker Switch' 1"
+		cset "name='AMP2 Speaker Switch' 1"
+		cset "name='AMP3 Speaker Switch' 1"
+		cset "name='AMP4 Speaker Switch' 1"
+	]
+
+	DisableSequence [
+		cset "name='AMP4 Speaker Switch' 0"
+		cset "name='AMP3 Speaker Switch' 0"
+		cset "name='AMP2 Speaker Switch' 0"
+		cset "name='AMP1 Speaker Switch' 0"
+	]
+
+	Value {
+		PlaybackPriority 100
+		PlaybackPCM "hw:${CardId},2"
+	}
+}