Lines Matching defs:sdev

45 	struct snd_sof_dev *sdev;
51 sdev = widget_to_sdev(w);
52 tplg_ops = sof_ipc_get_ops(sdev, tplg);
55 ret = tplg_ops->dai_config(sdev, swidget, flags, data);
57 dev_err(sdev->dev, "DAI config with flags %x failed for widget %s\n",
81 struct snd_sof_dev *sdev;
84 sdev = widget_to_sdev(w);
90 if (sdev->dspless_mode_selected)
91 return hda_select_dai_widget_ops(sdev, NULL);
98 hda_select_dai_widget_ops(sdev, swidget);
118 struct snd_sof_dev *sdev;
126 sdev = dai_to_sdev(substream, cpu_dai);
128 hlink = ops->get_hlink(sdev, substream);
138 ops->release_hext_stream(sdev, cpu_dai, substream);
156 struct snd_sof_dev *sdev;
164 sdev = dai_to_sdev(substream, cpu_dai);
166 hlink = ops->get_hlink(sdev, substream);
170 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream);
174 hext_stream = ops->assign_hext_stream(sdev, cpu_dai, substream);
188 ops->codec_dai_set_stream(sdev, substream, hstream);
191 ops->reset_hext_stream(sdev, hext_stream);
194 unsigned int format_val = ops->calc_stream_format(sdev, substream, params);
196 ops->setup_hext_stream(sdev, hext_stream, format_val);
209 struct snd_sof_dev *sdev = dai_to_sdev(substream, cpu_dai);
216 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream);
232 struct snd_sof_dev *sdev = widget_to_sdev(w);
236 dev_err(sdev->dev, "DAI widget ops not set\n");
240 hext_stream = ops->get_hext_stream(sdev, dai, substream);
248 hext_stream = ops->get_hext_stream(sdev, dai, substream);
265 struct snd_sof_dev *sdev;
276 sdev = dai_to_sdev(substream, dai);
278 hext_stream = ops->get_hext_stream(sdev, dai, substream);
283 ret = ops->pre_trigger(sdev, dai, substream, cmd);
289 ret = ops->trigger(sdev, dai, substream, cmd);
295 ret = ops->post_trigger(sdev, dai, substream, cmd);
304 dev_err(sdev->dev, "%s: failed to clean up link DMA\n", __func__);
354 struct snd_sof_dev *sdev;
372 sdev = widget_to_sdev(w);
373 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream);
439 struct snd_sof_dev *sdev;
449 sdev = widget_to_sdev(w);
450 hext_stream = ops->get_hext_stream(sdev, cpu_dai, substream);
456 ret = hdac_bus_eml_sdw_map_stream_ch(sof_to_bus(sdev), link_id, cpu_dai->id,
474 struct snd_sof_dev *sdev;
483 sdev = widget_to_sdev(w);
486 ret = hdac_bus_eml_sdw_map_stream_ch(sof_to_bus(sdev), link_id, cpu_dai->id,
526 struct snd_sof_dev *sdev;
533 sdev = widget_to_sdev(w);
545 ret = ops->post_trigger(sdev, cpu_dai,
557 static void ssp_set_dai_drv_ops(struct snd_sof_dev *sdev, struct snd_sof_dsp_ops *ops)
562 chip = get_chip_info(sdev->pdata);
572 static void dmic_set_dai_drv_ops(struct snd_sof_dev *sdev, struct snd_sof_dsp_ops *ops)
577 chip = get_chip_info(sdev->pdata);
589 static inline void ssp_set_dai_drv_ops(struct snd_sof_dev *sdev, struct snd_sof_dsp_ops *ops) {}
590 static inline void dmic_set_dai_drv_ops(struct snd_sof_dev *sdev, struct snd_sof_dsp_ops *ops) {}
594 void hda_set_dai_drv_ops(struct snd_sof_dev *sdev, struct snd_sof_dsp_ops *ops)
607 ssp_set_dai_drv_ops(sdev, ops);
608 dmic_set_dai_drv_ops(sdev, ops);
610 if (sdev->pdata->ipc_type == SOF_INTEL_IPC4 && !hda_use_tplg_nhlt) {
611 struct sof_ipc4_fw_data *ipc4_data = sdev->private;
613 ipc4_data->nhlt = intel_nhlt_init(sdev->dev);
617 void hda_ops_free(struct snd_sof_dev *sdev)
619 if (sdev->pdata->ipc_type == SOF_INTEL_IPC4) {
620 struct sof_ipc4_fw_data *ipc4_data = sdev->private;
779 int hda_dsp_dais_suspend(struct snd_sof_dev *sdev)
790 ret = hda_dai_suspend(sof_to_bus(sdev));