Audio: Copier: Add missing DMIC DAI index mapping to create_dai()

The dai_index needs to be mapped similarly as in kernel. The SSP
type was handled correctly in the function but not DMIC.

Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2022-11-25 13:15:17 +02:00 committed by Liam Girdwood
parent 764ce675ee
commit 8d166a432f
1 changed files with 1 additions and 0 deletions

View File

@ -379,6 +379,7 @@ static int create_dai(struct comp_dev *parent_dev, struct copier_data *cd,
break;
case ipc4_dmic_link_input_class:
dai_index[dai_count - 1] = (dai_index[dai_count - 1] >> 5) & 0x7;
dai.type = SOF_DAI_INTEL_DMIC;
dai.is_config_blob = true;
type = ipc4_gtw_dmic;