On 12/5/23 08:24, Charles Keepax wrote:
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 --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"
- ]
If we only need an on/off switch, I wonder if this can be made conditional, i.e. enable/disable a control if it exists. That would scale to various numbers of amplifiers without a need to add a 2-amp, 6 or 8-amp configuration.
- Value {
PlaybackPriority 100
PlaybackPCM "hw:${CardId},2"
- }
+}