From: Federico Lombardo Date: Sun, 8 Mar 2026 21:08:51 +0000 (+0100) Subject: sof-hda-dsp: add workaround for speaker LED on MSI laptops X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=2132426f650fc1f43a9a967cfd3fa080b3f07e23;p=alsa-ucm-conf.git sof-hda-dsp: add workaround for speaker LED on MSI laptops Fixes: Master Playback Switch doesn't get attached to the Mute LED on these two platforms. This change adresses this issue. Also fixes 0915b27a which accidentally broke dell workaround. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/716 Fixes: 0915b27 ("ucm2: use new SetLED macro to hide the implementation details") Signed-off-by: Federico Lombardo 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 892894b..c1a019a 100644 --- a/ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf +++ b/ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf @@ -46,13 +46,13 @@ SectionUseCase."HiFi" { Include.hda-init.File "/HDA/init.conf" -If.DellMuteLed { +If.PlatformMuteLed { Condition { - Type String - Haystack "$${sys:class/leds/platform::mute/device}" - Needle "dell-laptop" + Type RegexMatch + Regex "(dell-laptop|msi-ec)" + String "$${sys:class/leds/platform::mute/device}" } - True.Macro [{ SetLED { LED="speaker" Action="detach" CtlId="Master Playback Switch" } }] + True.Macro [{ SetLED { LED="speaker" Action="attach" CtlId="Master Playback Switch" } }] } If.dmic {