Since cs42l43 can be used without UAJ, make sure the speakers can be
initialised separately. Complements [1] and add a possible speaker mute
LED bind.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/748
Link: https://github.com/alsa-project/alsa-ucm-conf/pull/738
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
--- /dev/null
+# cs42l43-spk specific control settings
+
+LibraryConfig.remap.Config {
+ ctl.default.map {
+ "name='cs42l43 Speaker Playback Switch'" {
+ "name='cs42l43 Speaker Digital Switch'".vindex.0 0
+ "name='cs42l43 Speaker Digital Switch'".vindex.1 1
+ }
+ }
+}
+
+Macro [
+ { SetLED { LED="speaker" Action="attach" CtlId="cs42l43 Speaker Digital Switch" } }
+]
\ No newline at end of file
-# cs42l43 specific control settings
+# cs42l43-hs specific control settings
LibraryConfig.remap.Config {
ctl.default.map {
"name='cs42l43 Headset Microphone Capture Volume'" {
"name='cs42l43 Decimator 1 Volume'".vindex.0 0
}
- "name='cs42l43 Speaker Playback Switch'" {
- "name='cs42l43 Speaker Digital Switch'".vindex.0 0
- "name='cs42l43 Speaker Digital Switch'".vindex.1 1
- }
}
}
If.spk_init {
Condition {
Type RegexMatch
- Regex "(rt1318(-1)?|cs35l56(-bridge)?)"
+ Regex "(rt1318(-1)?|cs42l43-spk|cs35l56(-bridge)?)"
String "${var:SpeakerCodec1}"
}
True.Include.spk_init.File "/codecs/${var:SpeakerCodec1}/init.conf"