Lines Matching refs:spcm
505 int dir, struct snd_sof_pcm *spcm) in sof_free_widgets_in_path() argument
507 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_free_widgets_in_path()
529 err = sof_free_widgets_in_path(sdev, p->sink, dir, spcm); in sof_free_widgets_in_path()
545 int dir, struct snd_sof_pcm *spcm) in sof_set_up_widgets_in_path() argument
547 struct snd_sof_pcm_stream_pipeline_list *pipeline_list = &spcm->stream[dir].pipeline_list; in sof_set_up_widgets_in_path()
548 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_set_up_widgets_in_path()
593 ret = sof_set_up_widgets_in_path(sdev, p->sink, dir, spcm); in sof_set_up_widgets_in_path()
607 sof_walk_widgets_in_order(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, in sof_walk_widgets_in_order() argument
612 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_walk_widgets_in_order()
635 ret = sof_set_up_widgets_in_path(sdev, widget, dir, spcm); in sof_walk_widgets_in_order()
639 ret = sof_free_widgets_in_path(sdev, widget, dir, spcm); in sof_walk_widgets_in_order()
675 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, in sof_widget_list_setup() argument
681 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_setup()
693 ret = sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, in sof_widget_list_setup()
699 ret = sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, in sof_widget_list_setup()
702 sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, in sof_widget_list_setup()
755 sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, dir, in sof_widget_list_setup()
757 sof_walk_widgets_in_order(sdev, spcm, NULL, NULL, dir, SOF_WIDGET_UNPREPARE); in sof_widget_list_setup()
762 int sof_widget_list_free(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir) in sof_widget_list_free() argument
764 struct snd_sof_pcm_stream_pipeline_list *pipeline_list = &spcm->stream[dir].pipeline_list; in sof_widget_list_free()
765 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_free()
773 ret = sof_walk_widgets_in_order(sdev, spcm, NULL, NULL, dir, SOF_WIDGET_FREE); in sof_widget_list_free()
776 sof_walk_widgets_in_order(sdev, spcm, NULL, NULL, dir, SOF_WIDGET_UNPREPARE); in sof_widget_list_free()
779 spcm->stream[dir].list = NULL; in sof_widget_list_free()
793 struct snd_sof_pcm *spcm; in snd_sof_dsp_only_d0i3_compatible_stream_active() local
797 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_dsp_only_d0i3_compatible_stream_active()
799 substream = spcm->stream[dir].substream; in snd_sof_dsp_only_d0i3_compatible_stream_active()
808 if (!spcm->stream[dir].d0i3_compatible) in snd_sof_dsp_only_d0i3_compatible_stream_active()
821 struct snd_sof_pcm *spcm; in snd_sof_stream_suspend_ignored() local
823 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_stream_suspend_ignored()
824 if (spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].suspend_ignored || in snd_sof_stream_suspend_ignored()
825 spcm->stream[SNDRV_PCM_STREAM_CAPTURE].suspend_ignored) in snd_sof_stream_suspend_ignored()
833 struct snd_sof_pcm *spcm, int dir, bool free_widget_list) in sof_pcm_stream_free() argument
839 if (spcm->prepared[substream->stream]) { in sof_pcm_stream_free()
854 spcm->prepared[substream->stream] = false; in sof_pcm_stream_free()
855 spcm->pending_stop[substream->stream] = false; in sof_pcm_stream_free()
869 ret = sof_widget_list_free(sdev, spcm, dir); in sof_pcm_stream_free()
889 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_name() local
891 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_name()
893 if (strcmp(spcm->pcm.dai_name, name) == 0) in snd_sof_find_spcm_name()
894 return spcm; in snd_sof_find_spcm_name()
897 if (*spcm->pcm.caps[0].name && in snd_sof_find_spcm_name()
898 !strcmp(spcm->pcm.caps[0].name, name)) in snd_sof_find_spcm_name()
899 return spcm; in snd_sof_find_spcm_name()
902 if (*spcm->pcm.caps[1].name && in snd_sof_find_spcm_name()
903 !strcmp(spcm->pcm.caps[1].name, name)) in snd_sof_find_spcm_name()
904 return spcm; in snd_sof_find_spcm_name()
915 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_comp() local
918 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_comp()
920 if (spcm->stream[dir].comp_id == comp_id) { in snd_sof_find_spcm_comp()
922 return spcm; in snd_sof_find_spcm_comp()