Skip to content

Commit 19bb72f

Browse files
committed
use SetLED in rt1318 init configuration
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1 parent ef7c31f commit 19bb72f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

ucm2/codecs/rt1318/init.conf

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,13 @@ If.oneAmp {
55
Type ControlExists
66
Control "name='rt1318-1 DAC Switch'"
77
}
8-
True {
9-
FixedBootSequence [
10-
exec "-/sbin/modprobe snd_ctl_led"
11-
sysw "-/class/sound/ctl-led/speaker/card${CardNumber}/attach:rt1318-1 DAC Switch"
12-
]
13-
}
8+
True.Macro[{ SetLED { LED="speaker" Action="attach" CtlId="rt1318-1 DAC Switch" } }]
149
}
1510

1611
If.twoAmps {
1712
Condition {
1813
Type ControlExists
1914
Control "name='rt1318-2 DAC Switch'"
2015
}
21-
True {
22-
FixedBootSequence [
23-
sysw "-/class/sound/ctl-led/speaker/card${CardNumber}/attach:rt1318-2 DAC Switch"
24-
]
25-
}
16+
True.Macro[{ SetLED { LED="speaker" Action="attach" CtlId="rt1318-2 DAC Switch" } }]
2617
}

0 commit comments

Comments
 (0)