Lines Matching refs:config
393 static void sof_dbg_comp_config(struct snd_soc_component *scomp, struct sof_ipc_comp_config *config) in sof_dbg_comp_config() argument
396 config->periods_sink, config->periods_source, in sof_dbg_comp_config()
397 config->frame_fmt); in sof_dbg_comp_config()
414 host->config.hdr.size = sizeof(host->config); in sof_ipc3_widget_setup_comp_host()
428 ret = sof_update_ipc_object(scomp, &host->config, SOF_COMP_TOKENS, swidget->tuples, in sof_ipc3_widget_setup_comp_host()
429 swidget->num_tuples, sizeof(host->config), 1); in sof_ipc3_widget_setup_comp_host()
434 sof_dbg_comp_config(scomp, &host->config); in sof_ipc3_widget_setup_comp_host()
464 tone->config.hdr.size = sizeof(tone->config); in sof_ipc3_widget_setup_comp_tone()
467 ret = sof_update_ipc_object(scomp, &tone->config, SOF_COMP_TOKENS, swidget->tuples, in sof_ipc3_widget_setup_comp_tone()
468 swidget->num_tuples, sizeof(tone->config), 1); in sof_ipc3_widget_setup_comp_tone()
477 sof_dbg_comp_config(scomp, &tone->config); in sof_ipc3_widget_setup_comp_tone()
497 mixer->config.hdr.size = sizeof(mixer->config); in sof_ipc3_widget_setup_comp_mixer()
500 ret = sof_update_ipc_object(scomp, &mixer->config, SOF_COMP_TOKENS, in sof_ipc3_widget_setup_comp_mixer()
502 sizeof(mixer->config), 1); in sof_ipc3_widget_setup_comp_mixer()
511 sof_dbg_comp_config(scomp, &mixer->config); in sof_ipc3_widget_setup_comp_mixer()
633 src->config.hdr.size = sizeof(src->config); in sof_ipc3_widget_setup_comp_src()
642 ret = sof_update_ipc_object(scomp, &src->config, SOF_COMP_TOKENS, in sof_ipc3_widget_setup_comp_src()
643 swidget->tuples, swidget->num_tuples, sizeof(src->config), 1); in sof_ipc3_widget_setup_comp_src()
649 sof_dbg_comp_config(scomp, &src->config); in sof_ipc3_widget_setup_comp_src()
674 asrc->config.hdr.size = sizeof(asrc->config); in sof_ipc3_widget_setup_comp_asrc()
683 ret = sof_update_ipc_object(scomp, &asrc->config, SOF_COMP_TOKENS, in sof_ipc3_widget_setup_comp_asrc()
684 swidget->tuples, swidget->num_tuples, sizeof(asrc->config), 1); in sof_ipc3_widget_setup_comp_asrc()
692 sof_dbg_comp_config(scomp, &asrc->config); in sof_ipc3_widget_setup_comp_asrc()
720 mux->config.hdr.size = sizeof(mux->config); in sof_ipc3_widget_setup_comp_mux()
723 ret = sof_update_ipc_object(scomp, &mux->config, SOF_COMP_TOKENS, in sof_ipc3_widget_setup_comp_mux()
724 swidget->tuples, swidget->num_tuples, sizeof(mux->config), 1); in sof_ipc3_widget_setup_comp_mux()
732 sof_dbg_comp_config(scomp, &mux->config); in sof_ipc3_widget_setup_comp_mux()
759 volume->config.hdr.size = sizeof(volume->config); in sof_ipc3_widget_setup_comp_pga()
768 ret = sof_update_ipc_object(scomp, &volume->config, SOF_COMP_TOKENS, in sof_ipc3_widget_setup_comp_pga()
770 sizeof(volume->config), 1); in sof_ipc3_widget_setup_comp_pga()
775 sof_dbg_comp_config(scomp, &volume->config); in sof_ipc3_widget_setup_comp_pga()
921 process->config.hdr.size = sizeof(process->config); in sof_process_load()
924 ret = sof_update_ipc_object(scomp, &process->config, SOF_COMP_TOKENS, in sof_process_load()
926 sizeof(process->config), 1); in sof_process_load()
931 sof_dbg_comp_config(scomp, &process->config); in sof_process_load()
982 struct sof_ipc_comp_process config; in sof_widget_update_ipc_comp_process() local
985 memset(&config, 0, sizeof(config)); in sof_widget_update_ipc_comp_process()
986 config.comp.core = swidget->core; in sof_widget_update_ipc_comp_process()
989 ret = sof_update_ipc_object(scomp, &config, SOF_PROCESS_TOKENS, swidget->tuples, in sof_widget_update_ipc_comp_process()
990 swidget->num_tuples, sizeof(config), 1); in sof_widget_update_ipc_comp_process()
995 return sof_process_load(scomp, swidget, find_process_comp_type(config.type)); in sof_widget_update_ipc_comp_process()
999 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_hda_load() argument
1002 u32 size = sizeof(*config); in sof_link_hda_load()
1006 memset(&config->hda, 0, sizeof(config->hda)); in sof_link_hda_load()
1007 config->hdr.size = size; in sof_link_hda_load()
1010 ret = sof_update_ipc_object(scomp, &config->hda, SOF_HDA_TOKENS, slink->tuples, in sof_link_hda_load()
1016 config->hda.rate, config->hda.channels); in sof_link_hda_load()
1018 config->hda.link_dma_ch = DMA_CHAN_INVALID; in sof_link_hda_load()
1022 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_hda_load()
1030 struct sof_ipc_dai_config *config) in sof_dai_set_format() argument
1033 config->format &= ~SOF_DAI_FMT_CLOCK_PROVIDER_MASK; in sof_dai_set_format()
1037 config->format |= SOF_DAI_FMT_CBP_CFP; in sof_dai_set_format()
1039 config->format |= SOF_DAI_FMT_CBP_CFC; in sof_dai_set_format()
1043 config->format |= SOF_DAI_FMT_CBC_CFP; in sof_dai_set_format()
1045 config->format |= SOF_DAI_FMT_CBC_CFC; in sof_dai_set_format()
1049 config->format &= ~SOF_DAI_FMT_INV_MASK; in sof_dai_set_format()
1052 config->format |= SOF_DAI_FMT_IB_IF; in sof_dai_set_format()
1054 config->format |= SOF_DAI_FMT_IB_NF; in sof_dai_set_format()
1057 config->format |= SOF_DAI_FMT_NB_IF; in sof_dai_set_format()
1059 config->format |= SOF_DAI_FMT_NB_NF; in sof_dai_set_format()
1064 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_sai_load() argument
1068 u32 size = sizeof(*config); in sof_link_sai_load()
1072 sof_dai_set_format(hw_config, config); in sof_link_sai_load()
1075 memset(&config->sai, 0, sizeof(config->sai)); in sof_link_sai_load()
1076 config->hdr.size = size; in sof_link_sai_load()
1079 ret = sof_update_ipc_object(scomp, &config->sai, SOF_SAI_TOKENS, slink->tuples, in sof_link_sai_load()
1084 config->sai.mclk_rate = le32_to_cpu(hw_config->mclk_rate); in sof_link_sai_load()
1085 config->sai.bclk_rate = le32_to_cpu(hw_config->bclk_rate); in sof_link_sai_load()
1086 config->sai.fsync_rate = le32_to_cpu(hw_config->fsync_rate); in sof_link_sai_load()
1087 config->sai.mclk_direction = hw_config->mclk_direction; in sof_link_sai_load()
1089 config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_sai_load()
1090 config->sai.tdm_slot_width = le32_to_cpu(hw_config->tdm_slot_width); in sof_link_sai_load()
1091 config->sai.rx_slots = le32_to_cpu(hw_config->rx_slots); in sof_link_sai_load()
1092 config->sai.tx_slots = le32_to_cpu(hw_config->tx_slots); in sof_link_sai_load()
1096 config->dai_index, config->format, in sof_link_sai_load()
1097 config->sai.mclk_rate, config->sai.tdm_slot_width, in sof_link_sai_load()
1098 config->sai.tdm_slots, config->sai.mclk_id); in sof_link_sai_load()
1100 if (config->sai.tdm_slots < 1 || config->sai.tdm_slots > 8) { in sof_link_sai_load()
1101 dev_err(scomp->dev, "Invalid channel count for SAI%d\n", config->dai_index); in sof_link_sai_load()
1107 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_sai_load()
1115 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_esai_load() argument
1119 u32 size = sizeof(*config); in sof_link_esai_load()
1123 sof_dai_set_format(hw_config, config); in sof_link_esai_load()
1126 memset(&config->esai, 0, sizeof(config->esai)); in sof_link_esai_load()
1127 config->hdr.size = size; in sof_link_esai_load()
1130 ret = sof_update_ipc_object(scomp, &config->esai, SOF_ESAI_TOKENS, slink->tuples, in sof_link_esai_load()
1135 config->esai.mclk_rate = le32_to_cpu(hw_config->mclk_rate); in sof_link_esai_load()
1136 config->esai.bclk_rate = le32_to_cpu(hw_config->bclk_rate); in sof_link_esai_load()
1137 config->esai.fsync_rate = le32_to_cpu(hw_config->fsync_rate); in sof_link_esai_load()
1138 config->esai.mclk_direction = hw_config->mclk_direction; in sof_link_esai_load()
1139 config->esai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_esai_load()
1140 config->esai.tdm_slot_width = le32_to_cpu(hw_config->tdm_slot_width); in sof_link_esai_load()
1141 config->esai.rx_slots = le32_to_cpu(hw_config->rx_slots); in sof_link_esai_load()
1142 config->esai.tx_slots = le32_to_cpu(hw_config->tx_slots); in sof_link_esai_load()
1146 config->dai_index, config->format, in sof_link_esai_load()
1147 config->esai.mclk_rate, config->esai.tdm_slot_width, in sof_link_esai_load()
1148 config->esai.tdm_slots, config->esai.mclk_id); in sof_link_esai_load()
1150 if (config->esai.tdm_slots < 1 || config->esai.tdm_slots > 8) { in sof_link_esai_load()
1151 dev_err(scomp->dev, "Invalid channel count for ESAI%d\n", config->dai_index); in sof_link_esai_load()
1157 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_esai_load()
1165 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_micfil_load() argument
1169 u32 size = sizeof(*config); in sof_link_micfil_load()
1173 sof_dai_set_format(hw_config, config); in sof_link_micfil_load()
1175 config->hdr.size = size; in sof_link_micfil_load()
1178 ret = sof_update_ipc_object(scomp, &config->micfil, SOF_MICFIL_TOKENS, slink->tuples, in sof_link_micfil_load()
1184 config->dai_index, config->micfil.pdm_ch, config->micfil.pdm_rate); in sof_link_micfil_load()
1188 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_micfil_load()
1196 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_acp_dmic_load() argument
1200 u32 size = sizeof(*config); in sof_link_acp_dmic_load()
1204 sof_dai_set_format(hw_config, config); in sof_link_acp_dmic_load()
1206 config->hdr.size = size; in sof_link_acp_dmic_load()
1209 ret = sof_update_ipc_object(scomp, &config->acpdmic, SOF_ACPDMIC_TOKENS, slink->tuples, in sof_link_acp_dmic_load()
1215 config->dai_index, config->acpdmic.pdm_ch, in sof_link_acp_dmic_load()
1216 config->acpdmic.pdm_rate); in sof_link_acp_dmic_load()
1220 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_dmic_load()
1228 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_acp_bt_load() argument
1232 u32 size = sizeof(*config); in sof_link_acp_bt_load()
1236 sof_dai_set_format(hw_config, config); in sof_link_acp_bt_load()
1239 memset(&config->acpbt, 0, sizeof(config->acpbt)); in sof_link_acp_bt_load()
1240 config->hdr.size = size; in sof_link_acp_bt_load()
1242 ret = sof_update_ipc_object(scomp, &config->acpbt, SOF_ACPI2S_TOKENS, slink->tuples, in sof_link_acp_bt_load()
1248 config->dai_index, config->acpbt.tdm_slots, in sof_link_acp_bt_load()
1249 config->acpbt.fsync_rate, config->acpbt.tdm_mode); in sof_link_acp_bt_load()
1253 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_bt_load()
1261 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_acp_sp_load() argument
1265 u32 size = sizeof(*config); in sof_link_acp_sp_load()
1269 sof_dai_set_format(hw_config, config); in sof_link_acp_sp_load()
1272 memset(&config->acpsp, 0, sizeof(config->acpsp)); in sof_link_acp_sp_load()
1273 config->hdr.size = size; in sof_link_acp_sp_load()
1275 ret = sof_update_ipc_object(scomp, &config->acpsp, SOF_ACPI2S_TOKENS, slink->tuples, in sof_link_acp_sp_load()
1282 config->dai_index, config->acpsp.tdm_slots, in sof_link_acp_sp_load()
1283 config->acpsp.fsync_rate, config->acpsp.tdm_mode); in sof_link_acp_sp_load()
1287 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_sp_load()
1295 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_acp_hs_load() argument
1299 u32 size = sizeof(*config); in sof_link_acp_hs_load()
1303 sof_dai_set_format(hw_config, config); in sof_link_acp_hs_load()
1306 memset(&config->acphs, 0, sizeof(config->acphs)); in sof_link_acp_hs_load()
1307 config->hdr.size = size; in sof_link_acp_hs_load()
1309 ret = sof_update_ipc_object(scomp, &config->acphs, SOF_ACPI2S_TOKENS, slink->tuples, in sof_link_acp_hs_load()
1315 config->dai_index, config->acphs.tdm_slots, in sof_link_acp_hs_load()
1316 config->acphs.fsync_rate, config->acphs.tdm_mode); in sof_link_acp_hs_load()
1320 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_hs_load()
1328 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_acp_sdw_load() argument
1331 u32 size = sizeof(*config); in sof_link_acp_sdw_load()
1335 ret = sof_update_ipc_object(scomp, &config->acp_sdw, SOF_ACP_SDW_TOKENS, slink->tuples, in sof_link_acp_sdw_load()
1341 config->hdr.size = size; in sof_link_acp_sdw_load()
1343 config->acp_sdw.rate, config->acp_sdw.channels); in sof_link_acp_sdw_load()
1348 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_sdw_load()
1356 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_afe_load() argument
1359 u32 size = sizeof(*config); in sof_link_afe_load()
1362 config->hdr.size = size; in sof_link_afe_load()
1365 ret = sof_update_ipc_object(scomp, &config->afe, SOF_AFE_TOKENS, slink->tuples, in sof_link_afe_load()
1371 config->afe.rate, config->afe.channels, config->afe.format); in sof_link_afe_load()
1373 config->afe.stream_id = DMA_CHAN_INVALID; in sof_link_afe_load()
1377 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_afe_load()
1385 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_ssp_load() argument
1390 u32 size = sizeof(*config); in sof_link_ssp_load()
1397 ret = sof_update_ipc_object(scomp, &config->ssp, SOF_SSP_TOKENS, slink->tuples, in sof_link_ssp_load()
1408 sof_dai_set_format(&hw_config[i], &config[i]); in sof_link_ssp_load()
1410 config[i].hdr.size = size; in sof_link_ssp_load()
1414 config[i].ssp.mclk_id, sdev->mclk_id_quirk); in sof_link_ssp_load()
1415 config[i].ssp.mclk_id = sdev->mclk_id_quirk; in sof_link_ssp_load()
1419 config[i].ssp.mclk_rate = le32_to_cpu(hw_config[i].mclk_rate); in sof_link_ssp_load()
1420 config[i].ssp.bclk_rate = le32_to_cpu(hw_config[i].bclk_rate); in sof_link_ssp_load()
1421 config[i].ssp.fsync_rate = le32_to_cpu(hw_config[i].fsync_rate); in sof_link_ssp_load()
1422 config[i].ssp.tdm_slots = le32_to_cpu(hw_config[i].tdm_slots); in sof_link_ssp_load()
1423 config[i].ssp.tdm_slot_width = le32_to_cpu(hw_config[i].tdm_slot_width); in sof_link_ssp_load()
1424 config[i].ssp.mclk_direction = hw_config[i].mclk_direction; in sof_link_ssp_load()
1425 config[i].ssp.rx_slots = le32_to_cpu(hw_config[i].rx_slots); in sof_link_ssp_load()
1426 config[i].ssp.tx_slots = le32_to_cpu(hw_config[i].tx_slots); in sof_link_ssp_load()
1429 config[i].dai_index, config[i].format, in sof_link_ssp_load()
1430 config[i].ssp.mclk_rate, config[i].ssp.bclk_rate, in sof_link_ssp_load()
1431 config[i].ssp.fsync_rate, config[i].ssp.sample_valid_bits, in sof_link_ssp_load()
1432 config[i].ssp.tdm_slot_width, config[i].ssp.tdm_slots, in sof_link_ssp_load()
1433 config[i].ssp.mclk_id, config[i].ssp.quirks, config[i].ssp.clks_control); in sof_link_ssp_load()
1436 if (config[i].ssp.fsync_rate < 8000 || config[i].ssp.fsync_rate > 192000) { in sof_link_ssp_load()
1437 dev_err(scomp->dev, "Invalid fsync rate for SSP%d\n", config[i].dai_index); in sof_link_ssp_load()
1441 if (config[i].ssp.tdm_slots < 1 || config[i].ssp.tdm_slots > 8) { in sof_link_ssp_load()
1443 config[i].dai_index); in sof_link_ssp_load()
1450 private->dai_config = kmemdup(config, size * slink->num_hw_configs, GFP_KERNEL); in sof_link_ssp_load()
1458 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_dmic_load() argument
1464 size_t size = sizeof(*config); in sof_link_dmic_load()
1468 memset(&config->dmic, 0, sizeof(config->dmic)); in sof_link_dmic_load()
1471 ret = sof_update_ipc_object(scomp, &config->dmic, SOF_DMIC_TOKENS, slink->tuples, in sof_link_dmic_load()
1477 ret = sof_update_ipc_object(scomp, &config->dmic.pdm[0], SOF_DMIC_PDM_TOKENS, in sof_link_dmic_load()
1480 config->dmic.num_pdm_active); in sof_link_dmic_load()
1485 config->hdr.size = size; in sof_link_dmic_load()
1489 config->dai_index, config->dmic.driver_ipc_version); in sof_link_dmic_load()
1491 config->dmic.pdmclk_min, config->dmic.pdmclk_max, in sof_link_dmic_load()
1492 config->dmic.duty_min); in sof_link_dmic_load()
1494 config->dmic.duty_max, config->dmic.fifo_fs, in sof_link_dmic_load()
1495 config->dmic.num_pdm_active); in sof_link_dmic_load()
1496 dev_dbg(scomp->dev, "fifo word length %d\n", config->dmic.fifo_bits); in sof_link_dmic_load()
1498 for (i = 0; i < config->dmic.num_pdm_active; i++) { in sof_link_dmic_load()
1500 config->dmic.pdm[i].id, in sof_link_dmic_load()
1501 config->dmic.pdm[i].enable_mic_a, in sof_link_dmic_load()
1502 config->dmic.pdm[i].enable_mic_b); in sof_link_dmic_load()
1504 config->dmic.pdm[i].id, in sof_link_dmic_load()
1505 config->dmic.pdm[i].polarity_mic_a, in sof_link_dmic_load()
1506 config->dmic.pdm[i].polarity_mic_b); in sof_link_dmic_load()
1508 config->dmic.pdm[i].id, in sof_link_dmic_load()
1509 config->dmic.pdm[i].clk_edge, in sof_link_dmic_load()
1510 config->dmic.pdm[i].skew); in sof_link_dmic_load()
1518 config->dmic.fifo_bits_b = config->dmic.fifo_bits; in sof_link_dmic_load()
1522 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_dmic_load()
1530 struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) in sof_link_alh_load() argument
1533 u32 size = sizeof(*config); in sof_link_alh_load()
1537 ret = sof_update_ipc_object(scomp, &config->alh, SOF_ALH_TOKENS, slink->tuples, in sof_link_alh_load()
1543 config->hdr.size = size; in sof_link_alh_load()
1548 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_alh_load()
1563 struct sof_ipc_dai_config *config; in sof_ipc3_widget_setup_comp_dai() local
1582 comp_dai->config.hdr.size = sizeof(comp_dai->config); in sof_ipc3_widget_setup_comp_dai()
1591 ret = sof_update_ipc_object(scomp, &comp_dai->config, SOF_COMP_TOKENS, in sof_ipc3_widget_setup_comp_dai()
1593 sizeof(comp_dai->config), 1); in sof_ipc3_widget_setup_comp_dai()
1599 sof_dbg_comp_config(scomp, &comp_dai->config); in sof_ipc3_widget_setup_comp_dai()
1610 config = kcalloc(slink->num_hw_configs, sizeof(*config), GFP_KERNEL); in sof_ipc3_widget_setup_comp_dai()
1611 if (!config) { in sof_ipc3_widget_setup_comp_dai()
1624 config[i].hdr.cmd = SOF_IPC_GLB_DAI_MSG | SOF_IPC_DAI_CONFIG; in sof_ipc3_widget_setup_comp_dai()
1625 config[i].format = le32_to_cpu(slink->hw_configs[i].fmt); in sof_ipc3_widget_setup_comp_dai()
1626 config[i].type = common_config.type; in sof_ipc3_widget_setup_comp_dai()
1627 config[i].dai_index = comp_dai->dai_index; in sof_ipc3_widget_setup_comp_dai()
1632 ret = sof_link_ssp_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1635 ret = sof_link_dmic_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1638 ret = sof_link_hda_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1641 ret = sof_link_alh_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1644 ret = sof_link_sai_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1647 ret = sof_link_esai_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1650 ret = sof_link_micfil_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1653 ret = sof_link_acp_bt_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1657 ret = sof_link_acp_sp_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1661 ret = sof_link_acp_hs_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1664 ret = sof_link_acp_dmic_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1667 ret = sof_link_afe_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1670 ret = sof_link_acp_sdw_load(scomp, slink, config, dai); in sof_ipc3_widget_setup_comp_dai()
1680 kfree(config); in sof_ipc3_widget_setup_comp_dai()
1685 kfree(config); in sof_ipc3_widget_setup_comp_dai()
2132 struct sof_ipc_dai_config *config; in sof_ipc3_dai_config() local
2146 config = &private->dai_config[dai->current_config]; in sof_ipc3_dai_config()
2147 if (!config) { in sof_ipc3_dai_config()
2152 switch (config->type) { in sof_ipc3_dai_config()
2165 config->hda.link_dma_ch = data->dai_data; in sof_ipc3_dai_config()
2171 config->dai_index = data->dai_index; in sof_ipc3_dai_config()
2172 config->alh.stream_id = data->dai_data; in sof_ipc3_dai_config()
2201 config->flags &= ~SOF_DAI_CONFIG_FLAGS_CMD_MASK; in sof_ipc3_dai_config()
2202 config->flags |= flags; in sof_ipc3_dai_config()
2204 config->flags = flags; in sof_ipc3_dai_config()
2209 ret = sof_ipc_tx_message_no_reply(sdev->ipc, config, config->hdr.size); in sof_ipc3_dai_config()
2214 config->flags = SOF_DAI_CONFIG_FLAGS_NONE; in sof_ipc3_dai_config()
2286 struct sof_ipc_dai_config *config; in sof_ipc3_set_up_all_pipelines() local
2294 config = private->dai_config; in sof_ipc3_set_up_all_pipelines()
2301 if (config->type == SOF_DAI_INTEL_HDA) in sof_ipc3_set_up_all_pipelines()
2302 config->hda.link_dma_ch = DMA_CHAN_INVALID; in sof_ipc3_set_up_all_pipelines()