diff mbox series

[alsa-ucm-conf,v2,2/2] sof-soundwire: Add sequence for controlling Mic Mute LED

Message ID 20241002142947.4015912-2-mstrozek@opensource.cirrus.com
State New
Headers show
Series [alsa-ucm-conf,v2,1/2] sof-soundwire: Change mapped control names to make them unique | expand

Commit Message

Maciej Strozek Oct. 2, 2024, 2:29 p.m. UTC
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
---
v2: no changes
---
 ucm2/codecs/cs42l43/init.conf | 6 ++++++
 1 file changed, 6 insertions(+)

--
2.39.5

Comments

Maciej Strozek Oct. 8, 2024, 8:44 a.m. UTC | #1
W dniu śro, 02.10.2024 o godzinie 15∶29 +0100, użytkownik Maciej
Strozek napisał:
> 
> +FixedBootSequence [
> +        exec "-/sbin/modprobe snd_ctl_led"
> +        sysw "-/class/sound/ctl-
> led/mic/card${CardNumber}/attach:cs42l43 Decimator 3 Switch"
> +        sysw "-/class/sound/ctl-
> led/mic/card${CardNumber}/attach:cs42l43 Decimator 4 Switch"
> +]
> --
> 2.39.5
> 

Please ignore this version, will send v3 with added headset mic
diff mbox series

Patch

diff --git a/ucm2/codecs/cs42l43/init.conf b/ucm2/codecs/cs42l43/init.conf
index cf61833..fad41dd 100644
--- a/ucm2/codecs/cs42l43/init.conf
+++ b/ucm2/codecs/cs42l43/init.conf
@@ -12,3 +12,9 @@  LibraryConfig.remap.Config {
 		}
 	}
 }
+
+FixedBootSequence [
+        exec "-/sbin/modprobe snd_ctl_led"
+        sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:cs42l43 Decimator 3 Switch"
+        sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:cs42l43 Decimator 4 Switch"
+]