Home
last modified time | relevance | path

Searched refs:spcm (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/sound/soc/sof/
Dpcm.c29 struct snd_sof_pcm *spcm; in create_page_table() local
33 spcm = snd_sof_find_spcm_dai(component, rtd); in create_page_table()
34 if (!spcm) in create_page_table()
38 spcm->stream[stream].page_table.area, size); in create_page_table()
41 static int sof_pcm_dsp_params(struct snd_sof_pcm *spcm, struct snd_pcm_substream *substream, in sof_pcm_dsp_params() argument
44 struct snd_soc_component *scomp = spcm->scomp; in sof_pcm_dsp_params()
52 spcm->pcm.pcm_id); in sof_pcm_dsp_params()
77 struct snd_sof_pcm *spcm; in snd_sof_pcm_period_elapsed() local
79 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_pcm_period_elapsed()
80 if (!spcm) { in snd_sof_pcm_period_elapsed()
[all …]
Dsof-audio.c21 struct snd_sof_pcm *spcm; in snd_sof_dsp_only_d0i3_compatible_stream_active() local
25 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_dsp_only_d0i3_compatible_stream_active()
27 substream = spcm->stream[dir].substream; in snd_sof_dsp_only_d0i3_compatible_stream_active()
36 if (!spcm->stream[dir].d0i3_compatible) in snd_sof_dsp_only_d0i3_compatible_stream_active()
49 struct snd_sof_pcm *spcm; in snd_sof_stream_suspend_ignored() local
51 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_stream_suspend_ignored()
52 if (spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].suspend_ignored || in snd_sof_stream_suspend_ignored()
53 spcm->stream[SNDRV_PCM_STREAM_CAPTURE].suspend_ignored) in snd_sof_stream_suspend_ignored()
64 struct snd_sof_pcm *spcm; in sof_set_hw_params_upon_resume() local
73 list_for_each_entry(spcm, &sdev->pcm_list, list) { in sof_set_hw_params_upon_resume()
[all …]
Dsof-audio.h167 struct snd_sof_pcm *spcm, int direction,
184 struct snd_sof_pcm *spcm = NULL; in snd_sof_find_spcm_dai() local
186 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_dai()
187 if (le32_to_cpu(spcm->pcm.dai_id) == rtd->dai_link->id) in snd_sof_find_spcm_dai()
188 return spcm; in snd_sof_find_spcm_dai()
Dipc.c444 struct snd_sof_pcm *spcm; in ipc_period_elapsed() local
447 spcm = snd_sof_find_spcm_comp(scomp, msg_id, &direction); in ipc_period_elapsed()
448 if (!spcm) { in ipc_period_elapsed()
455 stream = &spcm->stream[direction]; in ipc_period_elapsed()
474 struct snd_sof_pcm *spcm; in ipc_xrun() local
477 spcm = snd_sof_find_spcm_comp(scomp, msg_id, &direction); in ipc_xrun()
478 if (!spcm) { in ipc_xrun()
484 stream = &spcm->stream[direction]; in ipc_xrun()
520 struct snd_sof_pcm *spcm, int direction, in snd_sof_ipc_stream_posn() argument
530 stream.comp_id = spcm->stream[direction].comp_id; in snd_sof_ipc_stream_posn()
Dtopology.c65 struct snd_sof_pcm *spcm; in ipc_pcm_params() local
71 spcm = snd_sof_find_spcm_name(scomp, swidget->widget->sname); in ipc_pcm_params()
72 if (!spcm) { in ipc_pcm_params()
78 params = &spcm->params[dir]; in ipc_pcm_params()
147 struct snd_sof_pcm *spcm; in sof_keyword_dapm_event() local
159 spcm = snd_sof_find_spcm_name(scomp, swidget->widget->sname); in sof_keyword_dapm_event()
160 if (!spcm) { in sof_keyword_dapm_event()
169 if (spcm->stream[stream].suspend_ignored) { in sof_keyword_dapm_event()
191 if (spcm->stream[stream].suspend_ignored) { in sof_keyword_dapm_event()
1620 static int spcm_bind(struct snd_soc_component *scomp, struct snd_sof_pcm *spcm, in spcm_bind() argument
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/boards/
Dhda_dsp_common.c23 struct snd_pcm *spcm; in hda_dsp_hdmi_pcm_handle() local
27 spcm = rtd->pcm ? in hda_dsp_hdmi_pcm_handle()
29 if (spcm && strstr(spcm->id, "HDMI")) { in hda_dsp_hdmi_pcm_handle()
48 struct snd_pcm *spcm; in hda_dsp_hdmi_build_controls() local
59 spcm = hda_dsp_hdmi_pcm_handle(card, i); in hda_dsp_hdmi_build_controls()
60 if (spcm) { in hda_dsp_hdmi_build_controls()
61 hpcm->pcm = spcm; in hda_dsp_hdmi_build_controls()
62 hpcm->device = spcm->device; in hda_dsp_hdmi_build_controls()
65 __func__, i, hpcm->device, spcm); in hda_dsp_hdmi_build_controls()
/kernel/linux/linux-5.10/sound/soc/sof/intel/
Dhda-pcm.c154 struct snd_sof_pcm *spcm; in hda_dsp_pcm_pointer() local
157 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_pointer()
158 if (!spcm) { in hda_dsp_pcm_pointer()
166 pos = spcm->stream[substream->stream].posn.host_posn; in hda_dsp_pcm_pointer()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/
D0009_linux_sound.patch20596 stream = &spcm->stream[direction];
20607 + if (spcm->pcm.compress)
20617 stream = &spcm->stream[direction];
20653 @@ -57,7 +57,7 @@ static int sof_pcm_dsp_params(struct snd_sof_pcm *spcm, struct snd_pcm_substream
20908 spcm->stream[stream].comp_id = COMP_ID_UNASSIGNED;
20909 - INIT_WORK(&spcm->stream[stream].period_elapsed_work,
20912 + snd_sof_compr_init_elapsed_work(&spcm->stream[stream].period_elapsed_work);
20914 + snd_sof_pcm_init_elapsed_work(&spcm->stream[stream].period_elapsed_work);
20917 spcm->pcm = *pcm;