]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: sof-soundwire: Correct include file path for dsp.conf
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 4 Apr 2025 08:02:39 +0000 (11:02 +0300)
committerJaroslav Kysela <perex@perex.cz>
Fri, 4 Apr 2025 08:15:06 +0000 (10:15 +0200)
The file path must be given as absolut and not relative, otherwise the
dsp.conf file will not be found:
$ alsaucm dump text
ALSA lib utils.c:364:(uc_mgr_config_load_into) could not open configuration file /usr/share/alsa/ucm2/conf.d/sof-soundwire/../Intel/sof-hda-dsp/dsp.conf
ALSA lib parser.c:78:(uc_mgr_config_load_file) error: failed to open file /usr/share/alsa/ucm2/conf.d/sof-soundwire/../Intel/sof-hda-dsp/dsp.conf: -2
ALSA lib main.c:1554:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2
alsaucm: error failed to open sound card hw:0: No such file or directory

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/542
Fixes: c9d1f7eafa6c ("UCM2: sof-soundwire: Enable DRC and equalizers for")
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 8f9bc82c2d3bf083a1b56fd60006b450902b21df..5dcafd8b89b50429e2a2a3e27e4ffc99d127716e 100644 (file)
@@ -185,7 +185,7 @@ If.HdmiIec61937 {
 }
 
 # Define macros to set up processing controls
-Include.dsp-variables.File "../Intel/sof-hda-dsp/dsp.conf"
+Include.dsp-variables.File "/Intel/sof-hda-dsp/dsp.conf"
 
 # Set BootSequence and FixedBootSequence for drc, eqiir, eqfir
 Macro.SpeakerDrc.SofDrcBootSetup "endpoint='PostMixerSpeaker' direction='Playback'"