Skip to content

Commit

Permalink
ucm2: sof-soundwire: Correct FixedBootSequence for dmic info
Browse files Browse the repository at this point in the history
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: #485
Fixes: 9fa70ad ("sof-hda-dsp,sof-soundwire: add CaptureMicInfoFile fields for dmics")
Signed-off-by: Peter Ujfalusi <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
ujfalusi authored and perexg committed Dec 10, 2024
1 parent 0782bf4 commit 0032013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ucm2/sof-soundwire/sof-soundwire.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0032013

Please sign in to comment.