]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
use SetLED in rt1318 init configuration
authorJaroslav Kysela <perex@perex.cz>
Tue, 11 Mar 2025 13:30:40 +0000 (14:30 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 15 Mar 2025 14:46:15 +0000 (15:46 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/rt1318/init.conf

index b1d6c286a012e2680e31b688c3d17f213bc02e97..a31b41d05a44252fdf0e3f13d3005109812e1756 100644 (file)
@@ -5,12 +5,7 @@ If.oneAmp {
                Type ControlExists
                Control "name='rt1318-1 DAC Switch'"
        }
-       True {
-               FixedBootSequence [
-                       exec "-/sbin/modprobe snd_ctl_led"
-                       sysw "-/class/sound/ctl-led/speaker/card${CardNumber}/attach:rt1318-1 DAC Switch"
-               ]
-       }
+       True.Macro[{ SetLED { LED="speaker" Action="attach" CtlId="rt1318-1 DAC Switch" } }]
 }
 
 If.twoAmps {
@@ -18,9 +13,5 @@ If.twoAmps {
                Type ControlExists
                Control "name='rt1318-2 DAC Switch'"
        }
-       True {
-               FixedBootSequence [
-                       sysw "-/class/sound/ctl-led/speaker/card${CardNumber}/attach:rt1318-2 DAC Switch"
-               ]
-       }
+       True.Macro[{ SetLED { LED="speaker" Action="attach" CtlId="rt1318-2 DAC Switch" } }]
 }