Skip to content

Commit

Permalink
sof: Add dai_init and placeholder
Browse files Browse the repository at this point in the history
Add dai_init() and stub for now.
  • Loading branch information
finikorg committed Aug 20, 2019
1 parent a4bdf3b commit 740d793
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions subsys/audio/sof.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ static void prepare_host_windows()

static void sys_module_init(void)
{
LOG_INF("");

Z_STRUCT_SECTION_FOREACH(_sof_module, mod) {
mod->init();
LOG_INF("module %p init", mod);
Expand Down Expand Up @@ -317,6 +319,7 @@ static int sof_boot_complete()
return 0;
}

/* This is analog of platform_init() */
static int sof_init(struct device *unused)
{
int ret;
Expand Down Expand Up @@ -344,6 +347,13 @@ static int sof_init(struct device *unused)

LOG_INF("IPC initialized");

/* init DAIs */
ret = dai_init();
if (ret < 0) {
LOG_ERR("DAI initialization failed");
return ret;
}

/* init scheduler */
ret = scheduler_init();
if (ret < 0) {
Expand Down

0 comments on commit 740d793

Please sign in to comment.