Lines Matching refs:hw_config
2712 static void sof_dai_set_format(struct snd_soc_tplg_hw_config *hw_config, in sof_dai_set_format() argument
2716 if (hw_config->bclk_provider == SND_SOC_TPLG_BCLK_CP) { in sof_dai_set_format()
2718 if (hw_config->fsync_provider == SND_SOC_TPLG_FSYNC_CP) in sof_dai_set_format()
2724 if (hw_config->fsync_provider == SND_SOC_TPLG_FSYNC_CP) in sof_dai_set_format()
2731 if (hw_config->invert_bclk) { in sof_dai_set_format()
2732 if (hw_config->invert_fsync) in sof_dai_set_format()
2737 if (hw_config->invert_fsync) in sof_dai_set_format()
2808 struct snd_soc_tplg_hw_config *hw_config, in sof_link_ssp_load() argument
2836 sof_dai_set_format(&hw_config[i], &config[i]); in sof_link_ssp_load()
2841 config[i].ssp.mclk_rate = le32_to_cpu(hw_config[i].mclk_rate); in sof_link_ssp_load()
2842 config[i].ssp.bclk_rate = le32_to_cpu(hw_config[i].bclk_rate); in sof_link_ssp_load()
2843 config[i].ssp.fsync_rate = le32_to_cpu(hw_config[i].fsync_rate); in sof_link_ssp_load()
2844 config[i].ssp.tdm_slots = le32_to_cpu(hw_config[i].tdm_slots); in sof_link_ssp_load()
2845 config[i].ssp.tdm_slot_width = le32_to_cpu(hw_config[i].tdm_slot_width); in sof_link_ssp_load()
2846 config[i].ssp.mclk_direction = hw_config[i].mclk_direction; in sof_link_ssp_load()
2847 config[i].ssp.rx_slots = le32_to_cpu(hw_config[i].rx_slots); in sof_link_ssp_load()
2848 config[i].ssp.tx_slots = le32_to_cpu(hw_config[i].tx_slots); in sof_link_ssp_load()
2883 struct snd_soc_tplg_hw_config *hw_config, in sof_link_sai_load() argument
2892 sof_dai_set_format(hw_config, config); in sof_link_sai_load()
2907 config->sai.mclk_rate = le32_to_cpu(hw_config->mclk_rate); in sof_link_sai_load()
2908 config->sai.bclk_rate = le32_to_cpu(hw_config->bclk_rate); in sof_link_sai_load()
2909 config->sai.fsync_rate = le32_to_cpu(hw_config->fsync_rate); in sof_link_sai_load()
2910 config->sai.mclk_direction = hw_config->mclk_direction; in sof_link_sai_load()
2912 config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_sai_load()
2913 config->sai.tdm_slot_width = le32_to_cpu(hw_config->tdm_slot_width); in sof_link_sai_load()
2914 config->sai.rx_slots = le32_to_cpu(hw_config->rx_slots); in sof_link_sai_load()
2915 config->sai.tx_slots = le32_to_cpu(hw_config->tx_slots); in sof_link_sai_load()
2941 struct snd_soc_tplg_hw_config *hw_config, in sof_link_esai_load() argument
2950 sof_dai_set_format(hw_config, config); in sof_link_esai_load()
2965 config->esai.mclk_rate = le32_to_cpu(hw_config->mclk_rate); in sof_link_esai_load()
2966 config->esai.bclk_rate = le32_to_cpu(hw_config->bclk_rate); in sof_link_esai_load()
2967 config->esai.fsync_rate = le32_to_cpu(hw_config->fsync_rate); in sof_link_esai_load()
2968 config->esai.mclk_direction = hw_config->mclk_direction; in sof_link_esai_load()
2969 config->esai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_esai_load()
2970 config->esai.tdm_slot_width = le32_to_cpu(hw_config->tdm_slot_width); in sof_link_esai_load()
2971 config->esai.rx_slots = le32_to_cpu(hw_config->rx_slots); in sof_link_esai_load()
2972 config->esai.tx_slots = le32_to_cpu(hw_config->tx_slots); in sof_link_esai_load()
2998 struct snd_soc_tplg_hw_config *hw_config, in sof_link_dmic_load() argument
3082 struct snd_soc_tplg_hw_config *hw_config, in sof_link_hda_load() argument
3128 struct snd_soc_tplg_hw_config *hw_config, in sof_link_alh_load() argument
3163 struct snd_soc_tplg_hw_config *hw_config; in sof_link_load() local
3221 hw_config = cfg->hw_config; in sof_link_load()
3236 if (hw_config[curr_conf].id == cfg->default_hw_config_id) in sof_link_load()
3255 config[i].format = le32_to_cpu(hw_config[i].fmt); in sof_link_load()
3263 ret = sof_link_ssp_load(scomp, index, link, cfg, hw_config, config, curr_conf); in sof_link_load()
3266 ret = sof_link_dmic_load(scomp, index, link, cfg, hw_config + curr_conf, config); in sof_link_load()
3269 ret = sof_link_hda_load(scomp, index, link, cfg, hw_config + curr_conf, config); in sof_link_load()
3272 ret = sof_link_alh_load(scomp, index, link, cfg, hw_config + curr_conf, config); in sof_link_load()
3275 ret = sof_link_sai_load(scomp, index, link, cfg, hw_config + curr_conf, config); in sof_link_load()
3278 ret = sof_link_esai_load(scomp, index, link, cfg, hw_config + curr_conf, config); in sof_link_load()