]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
HDA-Intel: AMD ACP - add LED support acp-led
authorJaroslav Kysela <perex@perex.cz>
Thu, 4 Nov 2021 09:01:05 +0000 (10:01 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 5 Nov 2021 12:55:01 +0000 (13:55 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/HDA-Intel/HDA-Intel.conf
ucm2/HDA-Intel/HiFi-acp.conf

index 0d10fd4710a2cd1f1dd05723f667338634a4c3d2..7bc5f7fd4abf2ab3f6a75093ba0295866478ceac 100644 (file)
@@ -28,6 +28,12 @@ If.use {
                }
 
                Include.init.File "/HDA-Intel/init.conf"
+
+               FixedBootSequence [
+                       cset-new "name='Mic ACP LED Switch' type=bool,count=1 off"
+                       exec "-/sbin/modprobe snd_ctl_led"
+                       sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:Mic ACP LED Switch"
+               ]
        }
        True {
                Error "UCM is not supported for this HDA model (${CardLongName})"
index 123ae15f04066230a63e28ab0c39666fbbdd1d49..ead864663ec880f79de5d677b840c1db838337c9 100644 (file)
@@ -4,5 +4,7 @@ SectionDevice."Mic1" {
        Value {
                CapturePriority 100
                CapturePCM "hw:${var:AcpCardId}"
+               CaptureMixerElem "Mic ACP LED"
+               CaptureSwitch "Mic ACP LED Switch"
        }
 }