Lines Matching defs:sdev
18 bool snd_sof_dsp_only_d0i3_compatible_stream_active(struct snd_sof_dev *sdev)
25 list_for_each_entry(spcm, &sdev->pcm_list, list) {
47 bool snd_sof_stream_suspend_ignored(struct snd_sof_dev *sdev)
51 list_for_each_entry(spcm, &sdev->pcm_list, list) {
62 struct snd_sof_dev *sdev = dev_get_drvdata(dev);
73 list_for_each_entry(spcm, &sdev->pcm_list, list) {
93 return snd_sof_dsp_hw_params_upon_resume(sdev);
98 struct snd_sof_dev *sdev = dev_get_drvdata(dev);
104 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) {
145 const struct sof_ipc_pipe_new *snd_sof_pipeline_find(struct snd_sof_dev *sdev,
150 list_for_each_entry(swidget, &sdev->widget_list, list)
163 struct snd_sof_dev *sdev = dev_get_drvdata(dev);
174 list_for_each_entry_reverse(swidget, &sdev->widget_list, list) {
181 ret = sof_pipeline_core_enable(sdev, swidget);
207 ret = sof_ipc_tx_message(sdev->ipc, comp->hdr.cmd,
225 ret = sof_ipc_tx_message(sdev->ipc, hdr->cmd,
240 list_for_each_entry_reverse(sroute, &sdev->route_list, list) {
251 ret = sof_ipc_tx_message(sdev->ipc,
268 list_for_each_entry_reverse(dai, &sdev->dai_list, list) {
287 ret = sof_ipc_tx_message(sdev->ipc,
302 list_for_each_entry(swidget, &sdev->widget_list, list) {
329 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
332 list_for_each_entry(spcm, &sdev->pcm_list, list) {
355 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
359 list_for_each_entry(spcm, &sdev->pcm_list, list) {
374 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
377 list_for_each_entry(spcm, &sdev->pcm_list, list) {
388 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
391 list_for_each_entry(swidget, &sdev->widget_list, list) {
404 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
413 list_for_each_entry(swidget, &sdev->widget_list, list) {
425 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
428 list_for_each_entry(dai, &sdev->dai_list, list) {
439 int sof_machine_check(struct snd_sof_dev *sdev)
441 struct snd_sof_pdata *sof_pdata = sdev->pdata;
448 dev_warn(sdev->dev, "Force to use nocodec mode\n");
453 snd_sof_machine_select(sdev);
455 snd_sof_set_mach_params(sof_pdata->machine, sdev->dev);
460 dev_err(sdev->dev, "error: no matching ASoC machine driver found - aborting probe\n");
467 dev_warn(sdev->dev, "Using nocodec machine driver\n");
468 mach = devm_kzalloc(sdev->dev, sizeof(*mach), GFP_KERNEL);
475 ret = sof_nocodec_setup(sdev->dev, desc->ops);
480 snd_sof_set_mach_params(sof_pdata->machine, sdev->dev);
486 int sof_machine_register(struct snd_sof_dev *sdev, void *pdata)
499 platform_device_register_data(sdev->dev, drv_name,
504 dev_dbg(sdev->dev, "created machine %s\n",
511 void sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata)