]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: sof-soundwire: Correct FixedBootSequence for dmic info
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 10 Dec 2024 09:04:31 +0000 (11:04 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 10 Dec 2024 09:46:17 +0000 (10:46 +0100)
Replace the curly brackets with square brackets.
The curly ones break the FixedBootSequence parsing by resetting the
sequence.
If the /var/lib/alsa/card0.conf.d is not present then UCM will fail because
all sequences before the dmic is lost, including the card-init:

# alsactl init
alsa-lib main.c:619:(execute_cfgsave) unable to open file '/var/lib/alsa/card0.conf.d/42-sof-hdmi.conf': No such file or directory
alsa-lib main.c:2456:(set_fixedboot_user) Unable to execute force boot sequence

The full sequence supposed to be:
card-init
ctl-remap
cs42l43
dmic
hdmi

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/485
Fixes: 9fa70add7638 ("sof-hda-dsp,sof-soundwire: add CaptureMicInfoFile fields for dmics")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-soundwire/sof-soundwire.conf

index bb14ef2be0653f8ca4f4d84cf951018bd00514f2..a2f95892f210cf49c5a9e87cf598c0d77e6241d0 100644 (file)
@@ -156,10 +156,10 @@ If.mics-array {
                Type String
                Empty "${var:Mics1}"
        }
-       False.FixedBootSequence {
+       False.FixedBootSequence [
                # dmic array info
                exec "-nhlt-dmic-info -o ${var:LibDir}/dmics-nhlt.json"
-       }
+       ]
 }
 
 Include.hdmi-pcm.File "/common/pcm/hdmi.conf"