Skip to content

Commit

Permalink
Merge pull request #519 from ranj063/dmic_prm
Browse files Browse the repository at this point in the history
dmic: fix mem alloc for dmic params
  • Loading branch information
lgirdwood authored Oct 31, 2018
2 parents 66bd59b + 25d0f01 commit 43da169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/intel/cavs/dmic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ static int dmic_set_config(struct dai *dai, struct sof_ipc_dai_config *config)
*/
size = sizeof(*prm) + DMIC_HW_CONTROLLERS
* sizeof(struct sof_ipc_dai_dmic_pdm_ctrl);
prm = rzalloc(RZONE_SYS, SOF_MEM_CAPS_RAM, size);
prm = rzalloc(RZONE_RUNTIME, SOF_MEM_CAPS_RAM, size);
if (!prm) {
trace_dmic_error("eac");
return -ENOMEM;
Expand Down

0 comments on commit 43da169

Please sign in to comment.