Skip to content

Commit 5f1a2c3

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 <wojciech.jablonski@intel.com>
1 parent 46e934a commit 5f1a2c3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

zephyr/lib/cpu.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@ 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+
}
126+
127+
if (dai_set_config(dd->dai, &dd->ipc_config, cd->gtw_cfg) < 0) {
128+
tr_err(&zephyr_tr, "DAI resume failed on config, type %d index %d",
124129
dd->dai->type, dd->dai->index);
125130
}
126131

0 commit comments

Comments
 (0)