From 2132426f650fc1f43a9a967cfd3fa080b3f07e23 Mon Sep 17 00:00:00 2001 From: Federico Lombardo Date: Sun, 8 Mar 2026 22:08:51 +0100 Subject: [PATCH] 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 --- ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 { -- 2.52.0