- create 'Mic ACP LED Capture Switch'
- load the snd_ctl_led module when ACP microphone device is detected
- attach 'Mic ACP LED Capture Switch' to Mic LED
- add 'Mic ACP LED Capture Switch' control to ACP microphone device
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/115
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
}
Include.init.File "/HDA-Intel/init.conf"
+
+ FixedBootSequence [
+ cset-new "name='Mic ACP LED Capture Switch' type=bool,count=1 off"
+ exec "-/sbin/modprobe snd_ctl_led"
+ sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:Mic ACP LED Capture Switch"
+ ]
}
True {
Error "UCM is not supported for this HDA model (${CardLongName})"
Value {
CapturePriority 100
CapturePCM "hw:${var:AcpCardId}"
+ CaptureMixerElem "Mic ACP LED"
+ CaptureSwitch "Mic ACP LED Capture Switch"
}
}