Skip to content

Commit 357aedf

Browse files
committed
zephyr: Set config for resumed DAIs
After exit from D3 reset NHLT DMIC driver is unable to resume its operation due to lack of configuration. This change adds the missing steps for all types of active DAIs. Signed-off-by: Wojciech Jablonski <[email protected]>
1 parent 6cb32cd commit 357aedf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

zephyr/lib/cpu.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ static void resume_dais(void)
120120
cd = module_get_private_data(mod);
121121
dd = cd->dd[0];
122122
if (dai_probe(dd->dai->dev) < 0) {
123-
tr_err(&zephyr_tr, "DAI resume failed, type %d index %d",
123+
tr_err(&zephyr_tr, "DAI resume failed on probe, type %d index %d",
124+
dd->dai->type, dd->dai->index);
125+
} else if (dai_set_config(dd->dai, &dd->ipc_config, cd->gtw_cfg,
126+
cd->config.gtw_cfg.config_length) < 0) {
127+
tr_err(&zephyr_tr, "DAI resume failed on config, type %d index %d",
124128
dd->dai->type, dd->dai->index);
125129
}
126130

0 commit comments

Comments
 (0)