]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
common: led.conf - don't use If.0 blocks master
authorJaroslav Kysela <perex@perex.cz>
Fri, 21 Nov 2025 13:24:05 +0000 (14:24 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 21 Nov 2025 13:24:05 +0000 (14:24 +0100)
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 <perex@perex.cz>
ucm2/common/ctl/led.conf

index 7f47daac4bceb4777efb803476346627454fcbd1..87afbb952d2652695a157d9f6b6152411ec27cef 100644 (file)
@@ -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}"