ucm2: sof-soundwire: add Mic LED control for ACP PDM DMIC

Like for SOF HDA, add software defined Mic LED switch control with
Mic LED bindings.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/752
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2026-05-06 18:12:47 +02:00
commit e8737afe38
3 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,4 @@
Macro [
{ CtlNew { Arg="name='Mic ACP LED Capture Switch' type=bool,count=1 off" } }
{ SetLED { LED="mic" Action="attach" CtlId="Mic ACP LED Capture Switch" } }
]

View file

@ -4,5 +4,7 @@ SectionDevice."Mic" {
Value {
CapturePriority 100
CapturePCM "hw:${CardId},4"
CaptureMixerElem "Mic ACP LED"
CaptureSwitch "Mic ACP LED Capture Switch"
}
}

View file

@ -136,7 +136,7 @@ If.hs_init {
If.mic_init {
Condition {
Type RegexMatch
Regex "(cs42l43-dmic|cs42l45-dmic|cs47l47-dmic|rt712-dmic|rt713-dmic|rt715(-sdca)?)"
Regex "((acp|cs42l43|cs42l45|cs47l47|rt712|rt713)-dmic|rt715(-sdca)?)"
String "${var:MicCodec1}"
}
True.Include.mic_init.File "/codecs/${var:MicCodec1}/init.conf"