Lines Matching refs:spcm

491 				    int dir, struct snd_sof_pcm *spcm)  in sof_free_widgets_in_path()  argument
493 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_free_widgets_in_path()
515 err = sof_free_widgets_in_path(sdev, p->sink, dir, spcm); in sof_free_widgets_in_path()
531 int dir, struct snd_sof_pcm *spcm) in sof_set_up_widgets_in_path() argument
533 struct snd_sof_pcm_stream_pipeline_list *pipeline_list = &spcm->stream[dir].pipeline_list; in sof_set_up_widgets_in_path()
534 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_set_up_widgets_in_path()
579 ret = sof_set_up_widgets_in_path(sdev, p->sink, dir, spcm); in sof_set_up_widgets_in_path()
593 sof_walk_widgets_in_order(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, in sof_walk_widgets_in_order() argument
598 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_walk_widgets_in_order()
621 ret = sof_set_up_widgets_in_path(sdev, widget, dir, spcm); in sof_walk_widgets_in_order()
625 ret = sof_free_widgets_in_path(sdev, widget, dir, spcm); in sof_walk_widgets_in_order()
661 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, in sof_widget_list_setup() argument
667 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_setup()
679 ret = sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, in sof_widget_list_setup()
685 ret = sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, in sof_widget_list_setup()
688 sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, in sof_widget_list_setup()
741 sof_walk_widgets_in_order(sdev, spcm, fe_params, platform_params, dir, in sof_widget_list_setup()
743 sof_walk_widgets_in_order(sdev, spcm, NULL, NULL, dir, SOF_WIDGET_UNPREPARE); in sof_widget_list_setup()
748 int sof_widget_list_free(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir) in sof_widget_list_free() argument
750 struct snd_sof_pcm_stream_pipeline_list *pipeline_list = &spcm->stream[dir].pipeline_list; in sof_widget_list_free()
751 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_free()
759 ret = sof_walk_widgets_in_order(sdev, spcm, NULL, NULL, dir, SOF_WIDGET_FREE); in sof_widget_list_free()
762 sof_walk_widgets_in_order(sdev, spcm, NULL, NULL, dir, SOF_WIDGET_UNPREPARE); in sof_widget_list_free()
765 spcm->stream[dir].list = NULL; in sof_widget_list_free()
779 struct snd_sof_pcm *spcm; in snd_sof_dsp_only_d0i3_compatible_stream_active() local
783 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_dsp_only_d0i3_compatible_stream_active()
785 substream = spcm->stream[dir].substream; in snd_sof_dsp_only_d0i3_compatible_stream_active()
794 if (!spcm->stream[dir].d0i3_compatible) in snd_sof_dsp_only_d0i3_compatible_stream_active()
807 struct snd_sof_pcm *spcm; in snd_sof_stream_suspend_ignored() local
809 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_stream_suspend_ignored()
810 if (spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].suspend_ignored || in snd_sof_stream_suspend_ignored()
811 spcm->stream[SNDRV_PCM_STREAM_CAPTURE].suspend_ignored) in snd_sof_stream_suspend_ignored()
819 struct snd_sof_pcm *spcm, int dir, bool free_widget_list) in sof_pcm_stream_free() argument
824 if (spcm->prepared[substream->stream]) { in sof_pcm_stream_free()
836 spcm->prepared[substream->stream] = false; in sof_pcm_stream_free()
846 ret = sof_widget_list_free(sdev, spcm, dir); in sof_pcm_stream_free()
862 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_name() local
864 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_name()
866 if (strcmp(spcm->pcm.dai_name, name) == 0) in snd_sof_find_spcm_name()
867 return spcm; in snd_sof_find_spcm_name()
870 if (*spcm->pcm.caps[0].name && in snd_sof_find_spcm_name()
871 !strcmp(spcm->pcm.caps[0].name, name)) in snd_sof_find_spcm_name()
872 return spcm; in snd_sof_find_spcm_name()
875 if (*spcm->pcm.caps[1].name && in snd_sof_find_spcm_name()
876 !strcmp(spcm->pcm.caps[1].name, name)) in snd_sof_find_spcm_name()
877 return spcm; in snd_sof_find_spcm_name()
888 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_comp() local
891 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_comp()
893 if (spcm->stream[dir].comp_id == comp_id) { in snd_sof_find_spcm_comp()
895 return spcm; in snd_sof_find_spcm_comp()