Lines Matching refs:tdm
146 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_set_tdm_slot() local
179 tdm->nslots_per_frame = slots; in q6tdm_set_tdm_slot()
180 tdm->slot_width = slot_width; in q6tdm_set_tdm_slot()
182 tdm->slot_mask = ((dai->id & 0x1) ? tx_mask : rx_mask) & cap_mask; in q6tdm_set_tdm_slot()
199 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_set_channel_map() local
217 tdm->ch_mapping[i] = tx_slot[i]; in q6tdm_set_channel_map()
220 tdm->ch_mapping[i] = Q6AFE_CMAP_INVALID; in q6tdm_set_channel_map()
222 tdm->num_channels = tx_num; in q6tdm_set_channel_map()
236 tdm->ch_mapping[i] = rx_slot[i]; in q6tdm_set_channel_map()
239 tdm->ch_mapping[i] = Q6AFE_CMAP_INVALID; in q6tdm_set_channel_map()
241 tdm->num_channels = rx_num; in q6tdm_set_channel_map()
259 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_hw_params() local
261 tdm->bit_width = params_width(params); in q6tdm_hw_params()
262 tdm->sample_rate = params_rate(params); in q6tdm_hw_params()
263 tdm->num_channels = params_channels(params); in q6tdm_hw_params()
264 tdm->data_align_type = dai_data->priv[dai->id].data_align; in q6tdm_hw_params()
265 tdm->sync_src = dai_data->priv[dai->id].sync_src; in q6tdm_hw_params()
266 tdm->sync_mode = dai_data->priv[dai->id].sync_mode; in q6tdm_hw_params()
408 &dai_data->port_config[dai->id].tdm); in q6afe_dai_prepare()