Lines Matching refs:dai_data
80 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6slim_hw_params() local
81 struct q6afe_slim_cfg *slim = &dai_data->port_config[dai->id].slim; in q6slim_hw_params()
109 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6hdmi_hw_params() local
111 struct q6afe_hdmi_cfg *hdmi = &dai_data->port_config[dai->id].hdmi; in q6hdmi_hw_params()
158 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6i2s_hw_params() local
159 struct q6afe_i2s_cfg *i2s = &dai_data->port_config[dai->id].i2s_cfg; in q6i2s_hw_params()
164 i2s->sd_line_mask = dai_data->priv[dai->id].sd_line_mask; in q6i2s_hw_params()
171 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6i2s_set_fmt() local
172 struct q6afe_i2s_cfg *i2s = &dai_data->port_config[dai->id].i2s_cfg; in q6i2s_set_fmt()
185 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6tdm_set_tdm_slot() local
186 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_set_tdm_slot()
238 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6tdm_set_channel_map() local
239 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_set_channel_map()
298 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6tdm_hw_params() local
299 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; 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()
313 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6afe_dai_shutdown() local
316 if (!dai_data->is_port_started[dai->id]) in q6afe_dai_shutdown()
319 rc = q6afe_port_stop(dai_data->port[dai->id]); in q6afe_dai_shutdown()
323 dai_data->is_port_started[dai->id] = false; in q6afe_dai_shutdown()
330 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6afe_dai_prepare() local
333 if (dai_data->is_port_started[dai->id]) { in q6afe_dai_prepare()
335 rc = q6afe_port_stop(dai_data->port[dai->id]); in q6afe_dai_prepare()
345 q6afe_hdmi_port_prepare(dai_data->port[dai->id], in q6afe_dai_prepare()
346 &dai_data->port_config[dai->id].hdmi); in q6afe_dai_prepare()
349 q6afe_slim_port_prepare(dai_data->port[dai->id], in q6afe_dai_prepare()
350 &dai_data->port_config[dai->id].slim); in q6afe_dai_prepare()
353 rc = q6afe_i2s_port_prepare(dai_data->port[dai->id], in q6afe_dai_prepare()
354 &dai_data->port_config[dai->id].i2s_cfg); in q6afe_dai_prepare()
362 q6afe_tdm_port_prepare(dai_data->port[dai->id], in q6afe_dai_prepare()
363 &dai_data->port_config[dai->id].tdm); in q6afe_dai_prepare()
369 rc = q6afe_port_start(dai_data->port[dai->id]); in q6afe_dai_prepare()
374 dai_data->is_port_started[dai->id] = true; in q6afe_dai_prepare()
383 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6slim_set_channel_map() local
384 struct q6afe_port_config *pcfg = &dai_data->port_config[dai->id]; in q6slim_set_channel_map()
419 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in q6afe_mi2s_set_sysclk() local
420 struct q6afe_port *port = dai_data->port[dai->id]; in q6afe_mi2s_set_sysclk()
599 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in msm_dai_q6_dai_probe() local
607 dai_data->port[dai->id] = port; in msm_dai_q6_dai_probe()
614 struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev); in msm_dai_q6_dai_remove() local
616 q6afe_port_put(dai_data->port[dai->id]); in msm_dai_q6_dai_remove()
617 dai_data->port[dai->id] = NULL; in msm_dai_q6_dai_remove()
1432 struct q6afe_dai_data *dai_data; in q6afe_dai_dev_probe() local
1435 dai_data = devm_kzalloc(dev, sizeof(*dai_data), GFP_KERNEL); in q6afe_dai_dev_probe()
1436 if (!dai_data) in q6afe_dai_dev_probe()
1439 dev_set_drvdata(dev, dai_data); in q6afe_dai_dev_probe()
1441 of_q6afe_parse_dai_data(dev, dai_data); in q6afe_dai_dev_probe()