From: KobaKo Date: Mon, 6 Mar 2023 12:22:51 +0000 (+0800) Subject: sof-hda-dsp: Add speaker led support X-Git-Tag: v1.2.9~7 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a2cabe3044075d53e4df0d4bb7c0818071e95e12;p=alsa-ucm-conf.git sof-hda-dsp: Add speaker led support Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/302 Signed-off-by: KobaKo Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf b/ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf index 6887938..e430a7b 100644 --- a/ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf +++ b/ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf @@ -61,6 +61,19 @@ If.speaker { ] } +If.DellMuteLed { + Condition { + Type String + Haystack "$${sys:class/leds/platform::mute/device}" + Needle "dell-laptop" + } + True { + FixedBootSequence [ + sysw "-/class/sound/ctl-led/speaker/card${CardNumber}/attach:Master Playback Switch" + ] + } +} + If.headphone { Condition { Type ControlExists