Lines Matching defs:hw_config

2785 static void sof_dai_set_format(struct snd_soc_tplg_hw_config *hw_config,
2789 if (hw_config->bclk_master == SND_SOC_TPLG_BCLK_CM) {
2791 if (hw_config->fsync_master == SND_SOC_TPLG_FSYNC_CM)
2797 if (hw_config->fsync_master == SND_SOC_TPLG_FSYNC_CM)
2804 if (hw_config->invert_bclk) {
2805 if (hw_config->invert_fsync)
2810 if (hw_config->invert_fsync)
2882 struct snd_soc_tplg_hw_config *hw_config,
2891 sof_dai_set_format(hw_config, config);
2906 config->ssp.mclk_rate = le32_to_cpu(hw_config->mclk_rate);
2907 config->ssp.bclk_rate = le32_to_cpu(hw_config->bclk_rate);
2908 config->ssp.fsync_rate = le32_to_cpu(hw_config->fsync_rate);
2909 config->ssp.tdm_slots = le32_to_cpu(hw_config->tdm_slots);
2910 config->ssp.tdm_slot_width = le32_to_cpu(hw_config->tdm_slot_width);
2911 config->ssp.mclk_direction = hw_config->mclk_direction;
2912 config->ssp.rx_slots = le32_to_cpu(hw_config->rx_slots);
2913 config->ssp.tx_slots = le32_to_cpu(hw_config->tx_slots);
2947 struct snd_soc_tplg_hw_config *hw_config,
2956 sof_dai_set_format(hw_config, config);
2971 config->sai.mclk_rate = le32_to_cpu(hw_config->mclk_rate);
2972 config->sai.bclk_rate = le32_to_cpu(hw_config->bclk_rate);
2973 config->sai.fsync_rate = le32_to_cpu(hw_config->fsync_rate);
2974 config->sai.mclk_direction = hw_config->mclk_direction;
2976 config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots);
2977 config->sai.tdm_slot_width = le32_to_cpu(hw_config->tdm_slot_width);
2978 config->sai.rx_slots = le32_to_cpu(hw_config->rx_slots);
2979 config->sai.tx_slots = le32_to_cpu(hw_config->tx_slots);
3005 struct snd_soc_tplg_hw_config *hw_config,
3014 sof_dai_set_format(hw_config, config);
3029 config->esai.mclk_rate = le32_to_cpu(hw_config->mclk_rate);
3030 config->esai.bclk_rate = le32_to_cpu(hw_config->bclk_rate);
3031 config->esai.fsync_rate = le32_to_cpu(hw_config->fsync_rate);
3032 config->esai.mclk_direction = hw_config->mclk_direction;
3033 config->esai.tdm_slots = le32_to_cpu(hw_config->tdm_slots);
3034 config->esai.tdm_slot_width = le32_to_cpu(hw_config->tdm_slot_width);
3035 config->esai.rx_slots = le32_to_cpu(hw_config->rx_slots);
3036 config->esai.tx_slots = le32_to_cpu(hw_config->tx_slots);
3062 struct snd_soc_tplg_hw_config *hw_config,
3146 struct snd_soc_tplg_hw_config *hw_config,
3192 struct snd_soc_tplg_hw_config *hw_config,
3228 struct snd_soc_tplg_hw_config *hw_config;
3282 * DAI links are expected to have at least 1 hw_config.
3283 * But some older topologies might have no hw_config for HDA dai links.
3297 if (cfg->hw_config[i].id == cfg->default_hw_config_id)
3302 dev_err(scomp->dev, "error: default hw_config id: %d not found!\n",
3309 hw_config = &cfg->hw_config[i];
3312 config.format = le32_to_cpu(hw_config->fmt);
3317 ret = sof_link_ssp_load(scomp, index, link, cfg, hw_config,
3321 ret = sof_link_dmic_load(scomp, index, link, cfg, hw_config,
3325 ret = sof_link_hda_load(scomp, index, link, cfg, hw_config,
3329 ret = sof_link_alh_load(scomp, index, link, cfg, hw_config,
3333 ret = sof_link_sai_load(scomp, index, link, cfg, hw_config,
3337 ret = sof_link_esai_load(scomp, index, link, cfg, hw_config,