From dac1c4904a96506c316c46471928d1ae8752dd75 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 18 May 2021 19:17:48 +0200 Subject: [PATCH] rt715: add mic led support Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/67 Signed-off-by: Jaroslav Kysela --- ucm2/codecs/rt715/init.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ucm2/codecs/rt715/init.conf b/ucm2/codecs/rt715/init.conf index 2baa105..2bbff07 100644 --- a/ucm2/codecs/rt715/init.conf +++ b/ucm2/codecs/rt715/init.conf @@ -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" + ] +} -- 2.47.1