Skip to content

Commit

Permalink
UCM2: Intel: sof-hda-dsp: Fix handling of empty sys_vendor
Browse files Browse the repository at this point in the history
The mistake in UCM syntax caused in alsaucm start error:

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

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

Closes: #463
Signed-off-by: Seppo Ingalsuo <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
singalsu authored and perexg committed Nov 13, 2024
1 parent fcb7a6f commit 11b028a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ucm2/Intel/sof-hda-dsp/HiFi-sof.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
Expand Down

0 comments on commit 11b028a

Please sign in to comment.