topology: dapm - fix the SNDERR() - Undefined

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-12-27 19:32:03 +01:00
parent f42b2c088a
commit 712fbacf16

View file

@ -230,7 +230,7 @@ int tplg_build_routes(snd_tplg_t *tplg)
SND_TPLG_TYPE_MIXER, elem->index) && SND_TPLG_TYPE_MIXER, elem->index) &&
!tplg_elem_lookup(&tplg->enum_list, route->control, !tplg_elem_lookup(&tplg->enum_list, route->control,
SND_TPLG_TYPE_ENUM, elem->index)) { SND_TPLG_TYPE_ENUM, elem->index)) {
SNDERR("Undefined mixer/enum control '%s'", SNDERR("undefined mixer/enum control '%s'",
route->control); route->control);
} }
} }
@ -243,7 +243,7 @@ int tplg_build_routes(snd_tplg_t *tplg)
} }
if (!tplg_elem_lookup(&tplg->widget_list, route->source, if (!tplg_elem_lookup(&tplg->widget_list, route->source,
SND_TPLG_TYPE_DAPM_WIDGET, SND_TPLG_INDEX_ALL)) { SND_TPLG_TYPE_DAPM_WIDGET, SND_TPLG_INDEX_ALL)) {
SNDERR("Undefined source widget/stream '%s'", SNDERR("undefined source widget/stream '%s'",
route->source); route->source);
} }