Skip to content

Commit

Permalink
copier: dmic: use gateway config
Browse files Browse the repository at this point in the history
Use previously saved gateway config instead of ipc config to retrieve
correct DMIC DMA config data and configure DMA channel.

Signed-off-by: Ievgen Ganakov <ievgen.ganakov@intel.com>
  • Loading branch information
iganakov authored and kv2019i committed Dec 7, 2023
1 parent 2fdec46 commit 60d1cad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/audio/copier/copier_dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ int copier_dai_create(struct comp_dev *dev, struct copier_data *cd,
dai.type = SOF_DAI_INTEL_DMIC;
dai.is_config_blob = true;
type = ipc4_gtw_dmic;

ret = ipc4_find_dma_config(&dai, (uint8_t *)copier->gtw_cfg.config_data,
ret = ipc4_find_dma_config(&dai, (uint8_t *)cd->gtw_cfg,
copier->gtw_cfg.config_length * 4);
if (ret != 0) {
comp_err(dev, "No dmic dma_config found in blob!");
Expand Down

0 comments on commit 60d1cad

Please sign in to comment.