]> git.alsa-project.org Git - alsa-utils.git/commitdiff
topology: don't fail when Define section is missing in the included file
authorJaroslav Kysela <perex@perex.cz>
Fri, 28 Jan 2022 17:07:46 +0000 (18:07 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 28 Jan 2022 17:07:46 +0000 (18:07 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
topology/pre-processor.c

index 52782402ae47e2c620cb972964878cfbedf4debb..f32f80c74ba9383a0af9abd7b1952cb4b7d981c1 100644 (file)
@@ -409,7 +409,7 @@ static int pre_process_include_conf(struct tplg_pre_processor *tplg_pp, snd_conf
 
                /* forcefully overwrite with defines from the command line */
                ret = pre_process_add_defines(tplg_pp, *new);
-               if (ret < 0) {
+               if (ret < 0 && ret != -ENOENT) {
                        fprintf(stderr, "Failed to parse arguments in input config\n");
                        goto err;
                }