kpb: make init unit-testable

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
Janusz Jankowski 2019-03-22 14:35:06 +01:00 committed by Liam Girdwood
parent 9310135020
commit 73cfb9b691
1 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@
#include <sof/audio/kpb.h>
#include <sof/list.h>
#include <sof/audio/buffer.h>
#include <sof/ut.h>
static void kpb_event_handler(int message, void *cb_data, void *event_data);
static int kpb_register_client(struct comp_data *kpb, struct kpb_client *cli);
@ -545,7 +546,7 @@ struct comp_driver comp_kpb = {
},
};
static void sys_comp_kpb_init(void)
UT_STATIC void sys_comp_kpb_init(void)
{
comp_register(&comp_kpb);
}