Lines Matching defs:sdev

88 sof_pcm_setup_connected_widgets(struct snd_sof_dev *sdev, struct snd_soc_pcm_runtime *rtd,
102 dev_err(sdev->dev, "error: dai %s has no valid %s path\n", dai->name,
109 ret = sof_widget_list_setup(sdev, spcm, params, platform_params, dir);
111 dev_err(sdev->dev, "error: failed widget list set up for pcm %d dir %d\n",
126 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
128 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
157 ret = snd_sof_pcm_platform_hw_params(sdev, substream, params, &platform_params);
165 ret = sof_pcm_setup_connected_widgets(sdev, rtd, spcm, params, &platform_params,
198 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
199 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
217 snd_sof_pcm_platform_trigger(sdev, substream, SNDRV_PCM_TRIGGER_STOP);
230 ret = snd_sof_pcm_platform_hw_free(sdev, substream);
237 ret = sof_widget_list_free(sdev, spcm, substream->stream);
287 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
288 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
328 if (sdev->system_suspend_target == SOF_SUSPEND_S0IX &&
341 if (sdev->dspless_mode_selected)
356 snd_sof_pcm_platform_trigger(sdev, substream, cmd);
366 snd_sof_pcm_platform_trigger(sdev, substream, cmd);
373 snd_sof_pcm_platform_trigger(sdev, substream, cmd);
381 ret = sof_pcm_stream_free(sdev, substream, spcm, substream->stream, false);
390 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
399 if (sof_ops(sdev)->pcm_pointer)
400 return sof_ops(sdev)->pcm_pointer(sdev, substream);
412 trace_sof_pcm_pointer_position(sdev, spcm, substream, host, dai);
422 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
423 struct snd_sof_dsp_ops *ops = sof_ops(sdev);
475 ret = snd_sof_pcm_platform_open(sdev, substream);
486 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
501 err = snd_sof_pcm_platform_close(sdev, substream);
522 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
555 SNDRV_DMA_TYPE_DEV_SG, sdev->dev,
577 SNDRV_DMA_TYPE_DEV_SG, sdev->dev,
595 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
596 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
626 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
627 struct snd_sof_pdata *plat_data = sdev->pdata;
640 sdev->component = component;
642 tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL,
672 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
674 return snd_sof_pcm_platform_ack(sdev, substream);
680 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
681 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm);
689 void snd_sof_new_platform_drv(struct snd_sof_dev *sdev)
691 struct snd_soc_component_driver *pd = &sdev->plat_drv;
692 struct snd_sof_pdata *plat_data = sdev->pdata;
734 if (!sdev->dspless_mode_selected)