mirror of https://github.com/thesofproject/sof.git
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:
parent
031ab223a0
commit
40f7cf7a28
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue