From: Jaroslav Kysela Date: Fri, 21 Nov 2025 13:24:05 +0000 (+0100) Subject: common: led.conf - don't use If.0 blocks X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=6ec48318d8b3afdc87f9fdd0ed9c6d9788868793;p=alsa-ucm-conf.git common: led.conf - don't use If.0 blocks Compounds starting with zero (and with continuous indexes) are handled as array type. It means that they are appended when they are parsed multiple times. Fix this. Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/common/ctl/led.conf b/ucm2/common/ctl/led.conf index 7f47daa..87afbb9 100644 --- a/ucm2/common/ctl/led.conf +++ b/ucm2/common/ctl/led.conf @@ -34,7 +34,7 @@ # DefineMacro.SetLED { - If.0 { + If.a { Condition { Type String Empty "${var:-SndCtlLedModprobe}" @@ -46,7 +46,7 @@ DefineMacro.SetLED { Define.SndCtlLedModprobe ok } } - If.1 { + If.b { Condition { Type String Empty "${var:-__Mode}" @@ -55,7 +55,7 @@ DefineMacro.SetLED { sysw "-/class/sound/ctl-led/${var:__LED}/mode:${var:__Mode}" ] } - If.2 { + If.c { Condition { Type AlwaysTrue } True.FixedBootSequence [ sysw "-/class/sound/ctl-led/${var:__LED}/card${CardNumber}/${var:__Action}:${var:__CtlId}"