Lines Matching refs:spcm

403 				    int dir, struct snd_sof_pcm *spcm)  in sof_free_widgets_in_path()  argument
405 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_free_widgets_in_path()
424 err = sof_free_widgets_in_path(sdev, p->sink, dir, spcm); in sof_free_widgets_in_path()
440 int dir, struct snd_sof_pcm *spcm) in sof_set_up_widgets_in_path() argument
442 struct snd_sof_pcm_stream_pipeline_list *pipeline_list = &spcm->stream[dir].pipeline_list; in sof_set_up_widgets_in_path()
443 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_set_up_widgets_in_path()
485 ret = sof_set_up_widgets_in_path(sdev, p->sink, dir, spcm); in sof_set_up_widgets_in_path()
499 sof_walk_widgets_in_order(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, in sof_walk_widgets_in_order() argument
504 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_walk_widgets_in_order()
524 ret = sof_set_up_widgets_in_path(sdev, widget, dir, spcm); in sof_walk_widgets_in_order()
528 ret = sof_free_widgets_in_path(sdev, widget, dir, spcm); in sof_walk_widgets_in_order()
564 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, in sof_widget_list_setup() argument
570 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_setup()
582 ret = sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, in sof_widget_list_setup()
588 ret = sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, in sof_widget_list_setup()
591 ret = sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, in sof_widget_list_setup()
644 sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, dir, in sof_widget_list_setup()
646 sof_walk_widgets_in_order(sdev, spcm, NULL, NULL, dir, SOF_WIDGET_UNPREPARE); in sof_widget_list_setup()
651 int sof_widget_list_free(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir) in sof_widget_list_free() argument
653 struct snd_sof_pcm_stream_pipeline_list *pipeline_list = &spcm->stream[dir].pipeline_list; in sof_widget_list_free()
654 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_free()
662 ret = sof_walk_widgets_in_order(sdev, spcm, NULL, NULL, dir, SOF_WIDGET_FREE); in sof_widget_list_free()
665 sof_walk_widgets_in_order(sdev, spcm, NULL, NULL, dir, SOF_WIDGET_UNPREPARE); in sof_widget_list_free()
668 spcm->stream[dir].list = NULL; in sof_widget_list_free()
682 struct snd_sof_pcm *spcm; in snd_sof_dsp_only_d0i3_compatible_stream_active() local
686 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_dsp_only_d0i3_compatible_stream_active()
688 substream = spcm->stream[dir].substream; in snd_sof_dsp_only_d0i3_compatible_stream_active()
697 if (!spcm->stream[dir].d0i3_compatible) in snd_sof_dsp_only_d0i3_compatible_stream_active()
710 struct snd_sof_pcm *spcm; in snd_sof_stream_suspend_ignored() local
712 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_stream_suspend_ignored()
713 if (spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].suspend_ignored || in snd_sof_stream_suspend_ignored()
714 spcm->stream[SNDRV_PCM_STREAM_CAPTURE].suspend_ignored) in snd_sof_stream_suspend_ignored()
722 struct snd_sof_pcm *spcm, int dir, bool free_widget_list) in sof_pcm_stream_free() argument
728 if (pcm_ops && pcm_ops->hw_free && spcm->prepared[substream->stream]) { in sof_pcm_stream_free()
734 spcm->prepared[substream->stream] = false; in sof_pcm_stream_free()
743 ret = sof_widget_list_free(sdev, spcm, dir); in sof_pcm_stream_free()
759 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_name() local
761 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_name()
763 if (strcmp(spcm->pcm.dai_name, name) == 0) in snd_sof_find_spcm_name()
764 return spcm; in snd_sof_find_spcm_name()
767 if (*spcm->pcm.caps[0].name && in snd_sof_find_spcm_name()
768 !strcmp(spcm->pcm.caps[0].name, name)) in snd_sof_find_spcm_name()
769 return spcm; in snd_sof_find_spcm_name()
772 if (*spcm->pcm.caps[1].name && in snd_sof_find_spcm_name()
773 !strcmp(spcm->pcm.caps[1].name, name)) in snd_sof_find_spcm_name()
774 return spcm; in snd_sof_find_spcm_name()
785 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_comp() local
788 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_comp()
790 if (spcm->stream[dir].comp_id == comp_id) { in snd_sof_find_spcm_comp()
792 return spcm; in snd_sof_find_spcm_comp()