sof-soundwire: Add basic support for cs42l43
PATCH v2 1/2 sof-soundwire: Add basic support for cs42l43
cs42l43 is a codec device, add basic support for it. Including a dual channel DMIC input, stereo headphones, and a mono headset microphone.
--- ucm2/sof-soundwire/cs42l43-dmic.conf | 28 +++++++++++++++++ ucm2/sof-soundwire/cs42l43.conf | 47 ++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 ucm2/sof-soundwire/cs42l43-dmic.conf create mode 100644 ucm2/sof-soundwire/cs42l43.conf
ucm2/sof-soundwire/cs42l43-dmic.conf new file +28 -0
@@ -0,0 +1,28 @@ +# Use case Configuration for sof-soundwire card + +SectionDevice."Mic" { + Comment "Microphones" + + ConflictingDevice [ + "Headset" + ] + + EnableSequence [ + cset "name='cs42l43 DP1TX1 Input' 'Decimator 3'" + cset "name='cs42l43 DP1TX2 Input' 'Decimator 4'" + cset "name='cs42l43 Decimator 3 Switch' on" + cset "name='cs42l43 Decimator 4 Switch' on" + ] + + DisableSequence [ + cset "name='cs42l43 Decimator 3 Switch' off" + cset "name='cs42l43 Decimator 4 Switch' off" + cset "name='cs42l43 DP1TX1 Input' 'None'" + cset "name='cs42l43 DP1TX2 Input' 'None'" + ] + + Value { + CapturePriority 100 + CapturePCM "hw:${CardId},4" + } +}
ucm2/sof-soundwire/cs42l43.conf new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
2.39.2
PATCH v2 2/2 sof-soundwire: Add basic support for a 4x cs35l56 configuration
cs35l56 is a boosted speaker amp, add UCM support for configurations with up to 8 amps. This also updates the default naming for the speaker amp UCM file to remove the number of amps. Special cases are added for the existing amps that require different UCM for different numbers of amps, but future additions will defaults to not including it in the naming.
--- ucm2/sof-soundwire/HiFi.conf | 12 +++- ucm2/sof-soundwire/cs35l56.conf | 123 ++++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 ucm2/sof-soundwire/cs35l56.conf
ucm2/sof-soundwire/HiFi.conf +11 -1
@@ -13,7 +13,17 @@ If.spkdev { Type String Empty "${var:SpeakerCodec1}" } - False.Include.spkdev.File "/sof-soundwire/${var:SpeakerCodec1}-${var:SpeakerAmps1}.conf" + False { + If.simplespeaker { + Condition { + Type RegexMatch + Regex "(rt1308|rt1316|rt1318)" + String "${var:SpeakerCodec1}" + } + True.Include.spkdev.File "/sof-soundwire/${var:SpeakerCodec1}-${var:SpeakerAmps1}.conf" + False.Include.spkdev.File "/sof-soundwire/${var:SpeakerCodec1}.conf" + } + } } If.micdev {
ucm2/sof-soundwire/cs35l56.conf new file +123 -0
123 lines not on this page · raw message
Signature · 1 line
2.39.2
Re: [PATCH alsa-ucm-conf v2 2/2] sof-soundwire: Add basic support for a 4x cs35l56 configuration
ucm2/sof-soundwire/HiFi.conf If.spkdev { · line 17
Quoted 2 lines · Charles Keepax
ucm2/sof-soundwire/HiFi.conf +2
-0+ False { + If.simplespeaker {
Ooops this name is left over from when I had the if the other way around, so is a bit confusing. I will leave it a couple days for any comments then fixup if we are happy.
Thanks,
Charles
Re: [PATCH alsa-ucm-conf v2 2/2] sof-soundwire: Add basic support for a 4x cs35l56 configuration
In reply to Charles KeepaxQuoted 9 lines · Charles Keepax
cs35l56 is a boosted speaker amp, add UCM support for configurations with up to 8 amps. This also updates the default naming for the speaker amp UCM file to remove the number of amps. Special cases are added for the existing amps that require different UCM for different numbers of amps, but future additions will defaults to not including it in the naming.
Signed-off-by Charles Keepax <[email protected]>---
...
ucm2/sof-soundwire/HiFi.conf If.spkdev { · line 16
Quoted 1 line
ucm2/sof-soundwire/HiFi.conf +0
-1- False.Include.spkdev.File "/sof-soundwire/${var:SpeakerCodec1}-${var:SpeakerAmps1}.conf"
Thanks, but I meant to do a global change like this:
https://github.com/alsa-project/alsa-ucm-conf/pull/370
Could you rebase your change on top?
Also, conditions may use ${var:SpeakerAmps1} for consistency. The driver should report the correct configuration. Macros are also helpful to reduce repeating configuration blocks.
Thanks,
Jaroslav
Signature · 2 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
Re: [PATCH alsa-ucm-conf v2 2/2] sof-soundwire: Add basic support for a 4x cs35l56 configuration
Quoted 13 lines · Jaroslav Kysela
Quoted 9 lines · Charles Keepax
cs35l56 is a boosted speaker amp, add UCM support for configurations with up to 8 amps. This also updates the default naming for the speaker amp UCM file to remove the number of amps. Special cases are added for the existing amps that require different UCM for different numbers of amps, but future additions will defaults to not including it in the naming.
Signed-off-by Charles Keepax <[email protected]>---
...
Quoted 7 lines
ucm2/sof-soundwire/HiFi.conf If.spkdev { · line 16
Quoted 1 line
ucm2/sof-soundwire/HiFi.conf +0
-1- False.Include.spkdev.File "/sof-soundwire/${var:SpeakerCodec1}-${var:SpeakerAmps1}.conf"Thanks, but I meant to do a global change like this:
https://github.com/alsa-project/alsa-ucm-conf/pull/370
Could you rebase your change on top?
Sure no problem thank you.
Thanks,
Charles