From cff692ef90d1eb3803193760026120615c395f4d Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 4 Nov 2021 10:01:05 +0100 Subject: [PATCH] HDA-Intel: AMD ACP - add LED support Signed-off-by: Jaroslav Kysela --- ucm2/HDA-Intel/HDA-Intel.conf | 6 ++++++ ucm2/HDA-Intel/HiFi-acp.conf | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ucm2/HDA-Intel/HDA-Intel.conf b/ucm2/HDA-Intel/HDA-Intel.conf index 0d10fd4..7bc5f7f 100644 --- a/ucm2/HDA-Intel/HDA-Intel.conf +++ b/ucm2/HDA-Intel/HDA-Intel.conf @@ -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})" diff --git a/ucm2/HDA-Intel/HiFi-acp.conf b/ucm2/HDA-Intel/HiFi-acp.conf index 123ae15..ead8646 100644 --- a/ucm2/HDA-Intel/HiFi-acp.conf +++ b/ucm2/HDA-Intel/HiFi-acp.conf @@ -4,5 +4,7 @@ SectionDevice."Mic1" { Value { CapturePriority 100 CapturePCM "hw:${var:AcpCardId}" + CaptureMixerElem "Mic ACP LED" + CaptureSwitch "Mic ACP LED Switch" } } -- 2.47.1