Skip to contentSkip to conversation

sof-soundwire: Add basic support for cs42l43's speaker

PATCH In review Charles Keepax 2 participants 2 messages Apr 23, 2024 – Apr 24, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sof-soundwire: Add basic support for cs42l43's speaker

Previous support was added for the mics and headset on cs42l43, expand this support with additional configuration for the speaker output.

---
 ucm2/sof-soundwire/cs42l43-spk.conf | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 ucm2/sof-soundwire/cs42l43-spk.conf
ucm2/sof-soundwire/cs42l43-spk.conf new file +25 -0
new file mode 100644
index 0000000..73f1299
@@ -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"
+	}
+}
Signature · 1 line
2.39.2
#1 lore raw
Quoted 4 lines · Charles Keepax

Previous support was added for the mics and headset on cs42l43, expand this support with additional configuration for the speaker output.

Thanks. Applied.

Jaroslav

Signature · 2 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.