alsa-lib/src/ucm
Hans de Goede e59034a0be ucm: Do not fail to parse configs on cards with an empty CardComponents lists
Since the UCM profiles for all Bay- and Cherry-Trail SST cards have been
moved over to UCM2, parsing them fails with:

ALSA lib ucm_subs.c:220:(uc_mgr_get_substituted_value) variable '${CardComponents}' is not defined in this context!

This completely breaks audio support on all Bay- and Cherry-Trail devices.

This is caused by these non-SOF ASoC using cards having an empty
CardComponents list. Which in itself is fine, but is rejected by
the ucm_subs.c code. This commit changes the ucm_subs code to accept
an empty string as a valid value for CardComponents restoring audio
functionality on these boards.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2019-12-03 20:37:43 +01:00
..
main.c ucm: add _identifiers list 2019-11-30 20:31:55 +01:00
Makefile.am ucm: add If condition block 2019-11-14 15:00:37 +01:00
parser.c ucm: remove the new-line for uc_error() calls 2019-11-25 19:50:47 +01:00
ucm_cond.c ucm: add support for ControlEnum in ControlExists condition 2019-11-29 09:34:09 +01:00
ucm_local.h ucm: add PlaybackCTL and CaptureCTL default values when they are not set 2019-11-14 15:00:40 +01:00
ucm_subs.c ucm: Do not fail to parse configs on cards with an empty CardComponents lists 2019-12-03 20:37:43 +01:00
utils.c ucm: add If condition block 2019-11-14 15:00:37 +01:00