]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-hda-dsp: Add speaker led support
authorKobaKo <koba.ko@canonical.com>
Mon, 6 Mar 2023 12:22:51 +0000 (20:22 +0800)
committerJaroslav Kysela <perex@perex.cz>
Mon, 17 Apr 2023 08:06:12 +0000 (10:06 +0200)
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/302
Signed-off-by: KobaKo <koba.ko@canonical.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf

index 6887938319a37720f671e66d27307fa59947c4bc..e430a7b04b41999ad22ebbef07bcc2b4cc162294 100644 (file)
@@ -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