]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
UCM2: Intel: sof-hda-dsp: Fix handling of empty sys_vendor
authorSeppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Wed, 13 Nov 2024 12:48:38 +0000 (14:48 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 13 Nov 2024 15:15:05 +0000 (16:15 +0100)
The mistake in UCM syntax caused in alsaucm start error:

ALSA lib ucm_cond.c:367:(if_eval) unknown If.Condition.Type

Fixes: 13022a97711d ("sof-hda-dsp: Fix the case where sysfs dmi
       sys_vendor attribute is not set")

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/463
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Intel/sof-hda-dsp/HiFi-sof.conf

index fea8159e9c99f49c586c2a9e038f10b0d4dc0fd8..c755ba26cbe60919c554abf8226bbce58269fb2f 100644 (file)
@@ -6,8 +6,8 @@ Define.SOFVendor "$${sys:devices/virtual/dmi/id/sys_vendor}"
 
 If.SOFVendor {
        Condition {
-               Type Empty
-               String "${var:SOFVendor}"
+               Type String
+               Empty "${var:SOFVendor}"
        }
        True.Define.SOFVendor "${sys:devices/virtual/dmi/id/board_vendor}"
 }