Lines Matching refs:tdm
186 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_set_tdm_slot() local
219 tdm->nslots_per_frame = slots; in q6tdm_set_tdm_slot()
220 tdm->slot_width = slot_width; in q6tdm_set_tdm_slot()
222 tdm->slot_mask = (dai->id & 0x1 ? tx_mask : rx_mask) & cap_mask; in q6tdm_set_tdm_slot()
239 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_set_channel_map() local
257 tdm->ch_mapping[i] = tx_slot[i]; in q6tdm_set_channel_map()
260 tdm->ch_mapping[i] = Q6AFE_CMAP_INVALID; in q6tdm_set_channel_map()
262 tdm->num_channels = tx_num; in q6tdm_set_channel_map()
276 tdm->ch_mapping[i] = rx_slot[i]; in q6tdm_set_channel_map()
279 tdm->ch_mapping[i] = Q6AFE_CMAP_INVALID; in q6tdm_set_channel_map()
281 tdm->num_channels = rx_num; in q6tdm_set_channel_map()
299 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_hw_params() local
301 tdm->bit_width = params_width(params); in q6tdm_hw_params()
302 tdm->sample_rate = params_rate(params); in q6tdm_hw_params()
303 tdm->num_channels = params_channels(params); in q6tdm_hw_params()
304 tdm->data_align_type = dai_data->priv[dai->id].data_align; in q6tdm_hw_params()
305 tdm->sync_src = dai_data->priv[dai->id].sync_src; in q6tdm_hw_params()
306 tdm->sync_mode = dai_data->priv[dai->id].sync_mode; in q6tdm_hw_params()
363 &dai_data->port_config[dai->id].tdm); in q6afe_dai_prepare()