--- /dev/null
+# cs42l43 specific control settings
+
+LibraryConfig.remap.Config {
+ ctl.default.map {
+ "name='cs42l43 PDM2 Switch'" {
+ "name='cs42l43 Decimator 3 Switch'".vindex.0 0
+ "name='cs42l43 Decimator 4 Switch'".vindex.1 0
+ }
+ "name='cs42l43 PDM2 Volume'" {
+ "name='cs42l43 Decimator 3 Volume'".vindex.0 0
+ "name='cs42l43 Decimator 4 Volume'".vindex.1 0
+ }
+ }
+}
--- /dev/null
+# 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'"
+ ]
+
+ DisableSequence [
+ cset "name='cs42l43 DP1TX1 Input' 'None'"
+ cset "name='cs42l43 DP1TX2 Input' 'None'"
+ ]
+
+ Value {
+ CapturePriority 100
+ CapturePCM "hw:${CardId},4"
+ CaptureMixer "default:${CardId}"
+ CaptureMixerElem "cs42l43 PDM2"
+ }
+}
--- /dev/null
+# Use case Configuration for sof-soundwire card
+
+SectionDevice."Headphones" {
+ Comment "Headphones"
+
+ EnableSequence [
+ cset "name='cs42l43 Headphone L Input 1' 'DP5RX1'"
+ cset "name='cs42l43 Headphone R Input 1' 'DP5RX2'"
+ ]
+
+ DisableSequence [
+ cset "name='cs42l43 Headphone L Input 1' 'None'"
+ cset "name='cs42l43 Headphone R Input 1' 'None'"
+ ]
+
+ Value {
+ PlaybackPriority 200
+ PlaybackPCM "hw:${CardId},0"
+ PlaybackVolume "cs42l43 Headphone Digital Volume"
+ JackControl "Headphone Jack"
+ }
+}
+
+SectionDevice."Headset" {
+ Comment "Headset Microphone"
+
+ EnableSequence [
+ cset "name='cs42l43 ADC1 Input' 'IN1'"
+ cset "name='cs42l43 Decimator 1 Mode' 'ADC'"
+
+ cset "name='cs42l43 DP1TX1 Input' 'Decimator 1'"
+ cset "name='cs42l43 DP1TX2 Input' 'Decimator 1'"
+ ]
+
+ DisableSequence [
+ cset "name='cs42l43 DP1TX1 Input' 'None'"
+ cset "name='cs42l43 DP1TX2 Input' 'None'"
+ ]
+
+ Value {
+ CapturePriority 200
+ CapturePCM "hw:${CardId},4"
+ CaptureMixerElem "cs42l43 Decimator 1"
+ JackControl "Headset Mic Jack"
+ }
+}
If.hs_init {
Condition {
Type RegexMatch
- Regex "(rt5682|rt700|rt711|rt713(-sdca)?)"
+ Regex "(cs42l43|rt5682|rt700|rt711|rt713(-sdca)?)"
String "${var:HeadsetCodec1}"
}
True.Include.hs_init.File "/codecs/${var:HeadsetCodec1}/init.conf"