]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-soundwire: Add sequence for controlling Mic Mute LED
authorMaciej Strozek <mstrozek@opensource.cirrus.com>
Thu, 17 Oct 2024 12:20:27 +0000 (13:20 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 18 Oct 2024 08:35:23 +0000 (10:35 +0200)
Also ensure the unused microphone is disabled so that currently used mic
can fully control the LED.

Link: https://lore.kernel.org/alsa-devel/20241017122027.1207373-2-mstrozek@opensource.cirrus.com/
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/cs42l43/init.conf
ucm2/sof-soundwire/cs42l43-dmic.conf
ucm2/sof-soundwire/cs42l43.conf

index b2796e202bfac61e49196fc1aac9c1b1084d7118..c2f52ad8a15ad6a9091100685544f22a7dfae741 100644 (file)
@@ -18,3 +18,10 @@ LibraryConfig.remap.Config {
                }
        }
 }
+
+FixedBootSequence [
+        exec "-/sbin/modprobe snd_ctl_led"
+        sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:cs42l43 Decimator 1 Switch"
+        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"
+]
index b68a70d1249406e0676acee8827710f9051d242a..70ce40ffabd9079e3583154d997a5180d82d627f 100644 (file)
@@ -13,6 +13,8 @@ SectionDevice."Mic" {
        ]
 
        DisableSequence [
+               cset "name='cs42l43 Decimator 3 Switch' 0"
+               cset "name='cs42l43 Decimator 4 Switch' 0"
                cset "name='cs42l43 DP1TX1 Input' 'None'"
                cset "name='cs42l43 DP1TX2 Input' 'None'"
        ]
index ddca67a825e3e23fcb7c5af0ddf7075732690450..dc11840f2ad95da9579112a8fd7ae2b930840332 100644 (file)
@@ -33,6 +33,7 @@ SectionDevice."Headset" {
        ]
 
        DisableSequence [
+               cset "name='cs42l43 Decimator 1 Switch' 0"
                cset "name='cs42l43 DP1TX1 Input' 'None'"
                cset "name='cs42l43 DP1TX2 Input' 'None'"
        ]