]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-soundwire: Fix cs42l43 dmic initialisation
authorJaroslav Kysela <perex@perex.cz>
Tue, 11 Mar 2025 09:49:55 +0000 (10:49 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 11 Mar 2025 09:51:20 +0000 (10:51 +0100)
Move the mixer controls initialization to BootSequence to let
manage (store/restore) the sound state at boot.

Fixes: a0d06a6 ("sof-soundwire: Split cs42l43 dmic initialisation")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/cs42l43-dmic/init.conf
ucm2/codecs/cs42l43/init.conf

index 8abd9d63ff51a09de52b82c7a1d2c1ddb71967e5..824a2cea7db9fb10a17a49f4c3838acc43463598 100644 (file)
@@ -13,9 +13,12 @@ LibraryConfig.remap.Config {
        }
 }
 
-FixedBootSequence [
+BootSequence [
        cset "name='cs42l43 Decimator 3 Switch' 0"
        cset "name='cs42l43 Decimator 4 Switch' 0"
+]
+
+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"
index 8e41a0fa152339b1eeee342a3394b4abb4a2fb34..c9c1ecf8d22b168503b9d16dc367325dae61b2b2 100644 (file)
@@ -11,8 +11,11 @@ LibraryConfig.remap.Config {
        }
 }
 
-FixedBootSequence [
+BootSequence [
        cset "name='cs42l43 Decimator 1 Switch' 0"
+]
+
+FixedBootSequence [
        exec "-/sbin/modprobe snd_ctl_led"
        sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:cs42l43 Decimator 1 Switch"
 ]