tasks: audio: Fix compilation issue for static pipeline

After commit 425aa5e917 ("ipc: Add support for creating pipelines
dynamically") the prototype of init_static_pipeline function has
changed.

Use the correct prototype to call init_static_pipline to avoid
compilation failure when STATIC_PIPE is defined.

Fixes: 425aa5e917 ("ipc: Add support for creating pipelines dynamically")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
Daniel Baluta 2019-02-20 14:20:29 +02:00 committed by Liam Girdwood
parent 5ccbab2659
commit e43fa6e44e
1 changed files with 3 additions and 9 deletions

View File

@ -48,16 +48,10 @@
#include <stdlib.h>
#include <errno.h>
struct audio_data {
struct pipeline *p;
};
int do_task_master_core(struct sof *sof)
{
int ret;
#ifdef STATIC_PIPE
struct audio_data pdata;
#endif
/* init default audio components */
sys_comp_init();
sys_comp_dai_init();
@ -73,8 +67,8 @@ int do_task_master_core(struct sof *sof)
#if STATIC_PIPE
/* init static pipeline */
pdata.p = init_static_pipeline();
if (pdata.p == NULL)
ret = init_static_pipeline(sof->ipc);
if (ret < 0)
panic(SOF_IPC_PANIC_TASK);
#endif
/* let host know DSP boot is complete */