Testbench: Initialize system notify

This patch adds the initialization to testbench start code. Without
it the notification from buffer consume/produce causes segfault.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2020-01-31 16:30:15 +02:00 committed by Liam Girdwood
parent 031ab223a0
commit 40f7cf7a28
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@
#include <sof/sof.h>
#include <sof/schedule/task.h>
#include <sof/lib/alloc.h>
#include <sof/lib/notifier.h>
#include <sof/drivers/ipc.h>
#include <sof/lib/dai.h>
#include <sof/lib/dma.h>
@ -29,6 +30,8 @@ int tb_pipeline_setup(struct sof *sof)
/* init components */
sys_comp_init(sof);
init_system_notify(sof);
/* init IPC */
if (ipc_init(sof) < 0) {
fprintf(stderr, "error: IPC init\n");