Lines Matching refs:tdm
127 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_set_tdm_slot() local
160 tdm->nslots_per_frame = slots; in q6tdm_set_tdm_slot()
161 tdm->slot_width = slot_width; in q6tdm_set_tdm_slot()
163 tdm->slot_mask = ((dai->id & 0x1) ? tx_mask : rx_mask) & cap_mask; in q6tdm_set_tdm_slot()
180 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_set_channel_map() local
198 tdm->ch_mapping[i] = tx_slot[i]; in q6tdm_set_channel_map()
201 tdm->ch_mapping[i] = Q6AFE_CMAP_INVALID; in q6tdm_set_channel_map()
203 tdm->num_channels = tx_num; in q6tdm_set_channel_map()
217 tdm->ch_mapping[i] = rx_slot[i]; in q6tdm_set_channel_map()
220 tdm->ch_mapping[i] = Q6AFE_CMAP_INVALID; in q6tdm_set_channel_map()
222 tdm->num_channels = rx_num; in q6tdm_set_channel_map()
240 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_hw_params() local
242 tdm->bit_width = params_width(params); in q6tdm_hw_params()
243 tdm->sample_rate = params_rate(params); in q6tdm_hw_params()
244 tdm->num_channels = params_channels(params); in q6tdm_hw_params()
245 tdm->data_align_type = dai_data->priv[dai->id].data_align; in q6tdm_hw_params()
246 tdm->sync_src = dai_data->priv[dai->id].sync_src; in q6tdm_hw_params()
247 tdm->sync_mode = dai_data->priv[dai->id].sync_mode; in q6tdm_hw_params()
391 &dai_data->port_config[dai->id].tdm); in q6afe_dai_prepare()