Lines Matching defs:hw_config

1006 static void sof_dai_set_format(struct snd_soc_tplg_hw_config *hw_config,
1011 if (hw_config->bclk_provider == SND_SOC_TPLG_BCLK_CP) {
1013 if (hw_config->fsync_provider == SND_SOC_TPLG_FSYNC_CP)
1019 if (hw_config->fsync_provider == SND_SOC_TPLG_FSYNC_CP)
1027 if (hw_config->invert_bclk) {
1028 if (hw_config->invert_fsync)
1033 if (hw_config->invert_fsync)
1043 struct snd_soc_tplg_hw_config *hw_config = slink->hw_configs;
1049 sof_dai_set_format(hw_config, config);
1061 config->sai.mclk_rate = le32_to_cpu(hw_config->mclk_rate);
1062 config->sai.bclk_rate = le32_to_cpu(hw_config->bclk_rate);
1063 config->sai.fsync_rate = le32_to_cpu(hw_config->fsync_rate);
1064 config->sai.mclk_direction = hw_config->mclk_direction;
1066 config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots);
1067 config->sai.tdm_slot_width = le32_to_cpu(hw_config->tdm_slot_width);
1068 config->sai.rx_slots = le32_to_cpu(hw_config->rx_slots);
1069 config->sai.tx_slots = le32_to_cpu(hw_config->tx_slots);
1094 struct snd_soc_tplg_hw_config *hw_config = slink->hw_configs;
1100 sof_dai_set_format(hw_config, config);
1112 config->esai.mclk_rate = le32_to_cpu(hw_config->mclk_rate);
1113 config->esai.bclk_rate = le32_to_cpu(hw_config->bclk_rate);
1114 config->esai.fsync_rate = le32_to_cpu(hw_config->fsync_rate);
1115 config->esai.mclk_direction = hw_config->mclk_direction;
1116 config->esai.tdm_slots = le32_to_cpu(hw_config->tdm_slots);
1117 config->esai.tdm_slot_width = le32_to_cpu(hw_config->tdm_slot_width);
1118 config->esai.rx_slots = le32_to_cpu(hw_config->rx_slots);
1119 config->esai.tx_slots = le32_to_cpu(hw_config->tx_slots);
1144 struct snd_soc_tplg_hw_config *hw_config = slink->hw_configs;
1150 sof_dai_set_format(hw_config, config);
1176 struct snd_soc_tplg_hw_config *hw_config = slink->hw_configs;
1181 sof_dai_set_format(hw_config, config);
1187 config->acpbt.fsync_rate = le32_to_cpu(hw_config->fsync_rate);
1188 config->acpbt.tdm_slots = le32_to_cpu(hw_config->tdm_slots);
1206 struct snd_soc_tplg_hw_config *hw_config = slink->hw_configs;
1212 sof_dai_set_format(hw_config, config);
1240 struct snd_soc_tplg_hw_config *hw_config = slink->hw_configs;
1246 sof_dai_set_format(hw_config, config);
1303 struct snd_soc_tplg_hw_config *hw_config = slink->hw_configs;
1310 * Parse common data, we should have 1 common data per hw_config.
1319 if (le32_to_cpu(hw_config[i].id) == slink->default_hw_cfg_id)
1323 sof_dai_set_format(&hw_config[i], &config[i]);
1334 config[i].ssp.mclk_rate = le32_to_cpu(hw_config[i].mclk_rate);
1335 config[i].ssp.bclk_rate = le32_to_cpu(hw_config[i].bclk_rate);
1336 config[i].ssp.fsync_rate = le32_to_cpu(hw_config[i].fsync_rate);
1337 config[i].ssp.tdm_slots = le32_to_cpu(hw_config[i].tdm_slots);
1338 config[i].ssp.tdm_slot_width = le32_to_cpu(hw_config[i].tdm_slot_width);
1339 config[i].ssp.mclk_direction = hw_config[i].mclk_direction;
1340 config[i].ssp.rx_slots = le32_to_cpu(hw_config[i].rx_slots);
1341 config[i].ssp.tx_slots = le32_to_cpu(hw_config[i].tx_slots);