OSDN Git Service

rt715: add mic led support
authorJaroslav Kysela <perex@perex.cz>
Tue, 18 May 2021 17:17:48 +0000 (19:17 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 18 May 2021 17:22:53 +0000 (19:22 +0200)
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/67
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/rt715/init.conf

index 2baa105..2bbff07 100644 (file)
@@ -18,3 +18,14 @@ If.adcxx {
                cset "name='rt715 ADC 07 Capture Volume' 58"
        ]
 }
+
+If.capturesw {
+       Condition {
+               Type ControlExists
+               Control "name='rt715 Capture Switch'"
+       }
+       True.FixedBootSequence [
+               exec "-/sbin/modprobe snd_ctl_led"
+               sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:rt715 Capture Switch"
+       ]
+}