Lines Matching defs:sdev
49 struct snd_sof_dev *sdev;
68 sdev = hda_stream->sdev;
69 chip = get_chip_info(sdev->pdata);
117 static struct hdac_ext_stream *hda_get_hext_stream(struct snd_sof_dev *sdev,
124 static struct hdac_ext_stream *hda_ipc4_get_hext_stream(struct snd_sof_dev *sdev,
144 static struct hdac_ext_stream *hda_assign_hext_stream(struct snd_sof_dev *sdev,
155 hext_stream = hda_link_stream_assign(sof_to_bus(sdev), substream);
167 static void hda_release_hext_stream(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
170 struct hdac_ext_stream *hext_stream = hda_get_hext_stream(sdev, cpu_dai, substream);
181 static void hda_setup_hext_stream(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream,
187 static void hda_reset_hext_stream(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream)
192 static void hda_codec_dai_set_stream(struct snd_sof_dev *sdev,
203 static unsigned int hda_calc_stream_format(struct snd_sof_dev *sdev,
220 dev_dbg(sdev->dev, "format_val=%#x, rate=%d, ch=%d, format=%d\n", format_val,
226 static struct hdac_ext_link *hda_get_hlink(struct snd_sof_dev *sdev,
231 struct hdac_bus *bus = sof_to_bus(sdev);
236 static unsigned int generic_calc_stream_format(struct snd_sof_dev *sdev,
247 dev_dbg(sdev->dev, "format_val=%#x, rate=%d, ch=%d, format=%d\n", format_val,
253 static unsigned int dmic_calc_stream_format(struct snd_sof_dev *sdev,
277 dev_dbg(sdev->dev, "format_val=%#x, rate=%d, ch=%d, format=%d\n", format_val,
283 static struct hdac_ext_link *ssp_get_hlink(struct snd_sof_dev *sdev,
286 struct hdac_bus *bus = sof_to_bus(sdev);
291 static struct hdac_ext_link *dmic_get_hlink(struct snd_sof_dev *sdev,
294 struct hdac_bus *bus = sof_to_bus(sdev);
299 static struct hdac_ext_link *sdw_get_hlink(struct snd_sof_dev *sdev,
302 struct hdac_bus *bus = sof_to_bus(sdev);
307 static int hda_ipc4_pre_trigger(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
310 struct sof_ipc4_fw_data *ipc4_data = sdev->private;
334 ret = sof_ipc4_set_pipeline_state(sdev, pipe_widget->instance_id,
342 dev_err(sdev->dev, "unknown trigger command %d\n", cmd);
350 static int hda_trigger(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
366 dev_err(sdev->dev, "unknown trigger command %d\n", cmd);
373 static int hda_ipc4_post_trigger(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
376 struct sof_ipc4_fw_data *ipc4_data = sdev->private;
396 ret = sof_ipc4_set_pipeline_state(sdev, pipe_widget->instance_id,
403 ret = sof_ipc4_set_pipeline_state(sdev, pipe_widget->instance_id,
411 ret = sof_ipc4_set_pipeline_state(sdev, pipe_widget->instance_id,
428 dev_err(sdev->dev, "unknown trigger command %d\n", cmd);
437 static struct hdac_ext_stream *sdw_hda_ipc4_get_hext_stream(struct snd_sof_dev *sdev,
456 return hda_ipc4_get_hext_stream(sdev, cpu_dai, substream);
524 static int hda_ipc3_post_trigger(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
527 struct hdac_ext_stream *hext_stream = hda_get_hext_stream(sdev, cpu_dai, substream);
570 hda_dspless_get_hext_stream(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
578 static void hda_dspless_setup_hext_stream(struct snd_sof_dev *sdev,
601 hda_select_dai_widget_ops(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget)
606 if (sdev->dspless_mode_selected)
611 switch (sdev->pdata->ipc_type) {
625 chip = get_chip_info(sdev->pdata);