From a2cabe3044075d53e4df0d4bb7c0818071e95e12 Mon Sep 17 00:00:00 2001 From: KobaKo Date: Mon, 6 Mar 2023 20:22:51 +0800 Subject: [PATCH] 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 --- ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- 2.47.1