Lines Matching refs:spcm

359 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir)  in sof_widget_list_setup()  argument
361 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_setup()
458 int sof_widget_list_free(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir) in sof_widget_list_free() argument
460 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_free()
493 spcm->stream[dir].list = NULL; in sof_widget_list_free()
505 struct snd_sof_pcm *spcm; in snd_sof_dsp_only_d0i3_compatible_stream_active() local
509 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_dsp_only_d0i3_compatible_stream_active()
511 substream = spcm->stream[dir].substream; in snd_sof_dsp_only_d0i3_compatible_stream_active()
520 if (!spcm->stream[dir].d0i3_compatible) in snd_sof_dsp_only_d0i3_compatible_stream_active()
533 struct snd_sof_pcm *spcm; in snd_sof_stream_suspend_ignored() local
535 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_stream_suspend_ignored()
536 if (spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].suspend_ignored || in snd_sof_stream_suspend_ignored()
537 spcm->stream[SNDRV_PCM_STREAM_CAPTURE].suspend_ignored) in snd_sof_stream_suspend_ignored()
548 struct snd_sof_pcm *spcm; in sof_set_hw_params_upon_resume() local
557 list_for_each_entry(spcm, &sdev->pcm_list, list) { in sof_set_hw_params_upon_resume()
563 if (spcm->stream[dir].suspend_ignored) in sof_set_hw_params_upon_resume()
566 substream = spcm->stream[dir].substream; in sof_set_hw_params_upon_resume()
572 spcm->prepared[dir] = false; in sof_set_hw_params_upon_resume()
707 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_name() local
709 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_name()
711 if (strcmp(spcm->pcm.dai_name, name) == 0) in snd_sof_find_spcm_name()
712 return spcm; in snd_sof_find_spcm_name()
715 if (*spcm->pcm.caps[0].name && in snd_sof_find_spcm_name()
716 !strcmp(spcm->pcm.caps[0].name, name)) in snd_sof_find_spcm_name()
717 return spcm; in snd_sof_find_spcm_name()
720 if (*spcm->pcm.caps[1].name && in snd_sof_find_spcm_name()
721 !strcmp(spcm->pcm.caps[1].name, name)) in snd_sof_find_spcm_name()
722 return spcm; in snd_sof_find_spcm_name()
733 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_comp() local
736 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_comp()
738 if (spcm->stream[dir].comp_id == comp_id) { in snd_sof_find_spcm_comp()
740 return spcm; in snd_sof_find_spcm_comp()
752 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_pcm_id() local
754 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_pcm_id()
755 if (le32_to_cpu(spcm->pcm.pcm_id) == pcm_id) in snd_sof_find_spcm_pcm_id()
756 return spcm; in snd_sof_find_spcm_pcm_id()