Home
last modified time | relevance | path

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

/linux-6.15/sound/soc/sof/
H A Dpcm.c34 if (!spcm) in create_page_table()
69 if (!spcm) { in snd_sof_pcm_period_elapsed()
138 if (!spcm) in sof_pcm_hw_params()
283 if (!spcm) in sof_pcm_hw_free()
308 if (!spcm) in sof_pcm_prepare()
358 if (!spcm) in sof_pcm_trigger()
479 if (!spcm) in sof_pcm_pointer()
509 if (!spcm) in sof_pcm_open()
569 if (!spcm) in sof_pcm_close()
605 if (!spcm) { in sof_pcm_new()
[all …]
H A Dcompress.c54 struct snd_sof_pcm *spcm; in snd_sof_compr_fragment_elapsed() local
65 if (!spcm) { in snd_sof_compr_fragment_elapsed()
85 struct snd_sof_pcm *spcm; in create_page_table() local
88 if (!spcm) in create_page_table()
101 struct snd_sof_pcm *spcm; in sof_compr_open() local
109 if (!spcm) { in sof_compr_open()
142 if (!spcm) in sof_compr_free()
190 if (!spcm) in sof_compr_set_params()
243 spcm->pcm.pcm_id); in sof_compr_set_params()
277 if (!spcm) in sof_compr_trigger()
[all …]
H A Dsof-audio.c779 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
821 struct snd_sof_pcm *spcm; in snd_sof_stream_suspend_ignored() local
840 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_name() local
845 return spcm; in snd_sof_find_spcm_name()
848 if (*spcm->pcm.caps[0].name && in snd_sof_find_spcm_name()
850 return spcm; in snd_sof_find_spcm_name()
853 if (*spcm->pcm.caps[1].name && in snd_sof_find_spcm_name()
855 return spcm; in snd_sof_find_spcm_name()
866 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_comp() local
[all …]
H A Dipc4-pcm.c336 spcm_err(spcm, direction, in sof_ipc4_chain_dma_trigger()
387 struct snd_sof_pcm *spcm; in sof_ipc4_trigger_pipelines() local
393 if (!spcm) in sof_ipc4_trigger_pipelines()
789 sof_ipc4_pcm_free(sdev, spcm); in sof_ipc4_pcm_setup()
795 sof_ipc4_pcm_free(sdev, spcm); in sof_ipc4_pcm_setup()
896 struct snd_sof_pcm *spcm; in sof_ipc4_pcm_hw_params() local
899 if (!spcm) in sof_ipc4_pcm_hw_params()
973 struct snd_sof_pcm *spcm; in sof_ipc4_pcm_pointer() local
977 if (!spcm) in sof_ipc4_pcm_pointer()
1083 struct snd_sof_pcm *spcm; in sof_ipc4_pcm_delay() local
[all …]
H A Dipc3-pcm.c22 struct snd_sof_pcm *spcm; in sof_ipc3_pcm_hw_free() local
24 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_ipc3_pcm_hw_free()
25 if (!spcm) in sof_ipc3_pcm_hw_free()
28 if (!spcm->prepared[substream->stream]) in sof_ipc3_pcm_hw_free()
50 struct snd_sof_pcm *spcm; in sof_ipc3_pcm_hw_params() local
53 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_ipc3_pcm_hw_params()
54 if (!spcm) in sof_ipc3_pcm_hw_params()
127 spcm_err(spcm, substream->stream, in sof_ipc3_pcm_hw_params()
149 struct snd_sof_pcm *spcm; in sof_ipc3_pcm_trigger() local
151 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_ipc3_pcm_trigger()
[all …]
H A Dsof-audio.h131 int (*pcm_setup)(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm);
132 void (*pcm_free)(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm);
586 struct snd_sof_pcm *spcm, int direction,
602 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_dai() local
604 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_dai()
605 if (le32_to_cpu(spcm->pcm.dai_id) == rtd->dai_link->id) in snd_sof_find_spcm_dai()
606 return spcm; in snd_sof_find_spcm_dai()
659 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm,
663 int sof_widget_list_free(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir);
665 struct snd_sof_pcm *spcm);
H A Dtopology.c1734 spcm = kzalloc(sizeof(*spcm), GFP_KERNEL); in sof_dai_load()
1735 if (!spcm) in sof_dai_load()
1738 spcm->scomp = scomp; in sof_dai_load()
1748 spcm->pcm = *pcm; in sof_dai_load()
1755 kfree(spcm); in sof_dai_load()
1802 if (!spcm->pcm.capture) in sof_dai_load()
1828 if (spcm->pcm.playback) in sof_dai_load()
1842 if (spcm->pcm.playback) in sof_dai_unload()
1845 if (spcm->pcm.capture) in sof_dai_unload()
1853 list_del(&spcm->list); in sof_dai_unload()
[all …]
H A Dipc3.c871 struct snd_sof_pcm *spcm; in ipc3_period_elapsed() local
874 spcm = snd_sof_find_spcm_comp(scomp, msg_id, &direction); in ipc3_period_elapsed()
875 if (!spcm) { in ipc3_period_elapsed()
881 stream = &spcm->stream[direction]; in ipc3_period_elapsed()
892 if (spcm->pcm.compress) in ipc3_period_elapsed()
906 struct snd_sof_pcm *spcm; in ipc3_xrun() local
909 spcm = snd_sof_find_spcm_comp(scomp, msg_id, &direction); in ipc3_xrun()
910 if (!spcm) { in ipc3_xrun()
916 stream = &spcm->stream[direction]; in ipc3_xrun()
H A Dipc4-topology.c517 struct snd_sof_pcm *spcm, int dir) in sof_ipc4_update_card_components_string() argument
521 struct snd_soc_component *scomp = spcm->scomp; in sof_ipc4_update_card_components_string()
540 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string()
546 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string()
552 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string()
566 struct snd_sof_pcm *spcm; in sof_ipc4_widget_setup_pcm() local
602 spcm = snd_sof_find_spcm_comp(scomp, swidget->comp_id, &dir); in sof_ipc4_widget_setup_pcm()
603 if (!spcm) in sof_ipc4_widget_setup_pcm()
606 ret = sof_ipc4_update_card_components_string(swidget, spcm, dir); in sof_ipc4_widget_setup_pcm()
611 struct snd_sof_pcm_stream *sps = &spcm->stream[dir]; in sof_ipc4_widget_setup_pcm()
[all …]
H A Dipc3-topology.c1909 struct snd_sof_pcm *spcm; in sof_ipc3_keyword_detect_pcm_params() local
1913 spcm = snd_sof_find_spcm_name(scomp, swidget->widget->sname); in sof_ipc3_keyword_detect_pcm_params()
1914 if (!spcm) { in sof_ipc3_keyword_detect_pcm_params()
1919 params = &spcm->params[dir]; in sof_ipc3_keyword_detect_pcm_params()
1985 struct snd_sof_pcm *spcm; in sof_ipc3_keyword_dapm_event() local
1997 spcm = snd_sof_find_spcm_name(scomp, swidget->widget->sname); in sof_ipc3_keyword_dapm_event()
1998 if (!spcm) { in sof_ipc3_keyword_dapm_event()
2007 if (spcm->stream[stream].suspend_ignored) { in sof_ipc3_keyword_dapm_event()
2027 if (spcm->stream[stream].suspend_ignored) { in sof_ipc3_keyword_dapm_event()
/linux-6.15/sound/soc/intel/boards/
H A Dhda_dsp_common.c24 struct snd_pcm *spcm; in hda_dsp_hdmi_pcm_handle() local
28 spcm = rtd->pcm ? in hda_dsp_hdmi_pcm_handle()
30 if (spcm && strstr(spcm->id, "HDMI")) { in hda_dsp_hdmi_pcm_handle()
49 struct snd_pcm *spcm; in hda_dsp_hdmi_build_controls() local
60 spcm = hda_dsp_hdmi_pcm_handle(card, i); in hda_dsp_hdmi_build_controls()
61 if (spcm) { in hda_dsp_hdmi_build_controls()
62 hpcm->pcm = spcm; in hda_dsp_hdmi_build_controls()
63 hpcm->device = spcm->device; in hda_dsp_hdmi_build_controls()
66 i, hpcm->device, spcm); in hda_dsp_hdmi_build_controls()
/linux-6.15/sound/soc/intel/avs/boards/
H A Dhdaudio.c78 struct snd_pcm *spcm; in avs_card_hdmi_pcm_at() local
81 spcm = rtd->pcm ? rtd->pcm->streams[dir].pcm : NULL; in avs_card_hdmi_pcm_at()
82 if (!spcm || !strstr(spcm->id, FEDAI_NAME_PREFIX)) in avs_card_hdmi_pcm_at()
85 ret = sscanf(spcm->id, FEDAI_NAME_PREFIX "%d", &n); in avs_card_hdmi_pcm_at()
104 struct snd_pcm *spcm; in avs_card_late_probe() local
106 spcm = avs_card_hdmi_pcm_at(card, i); in avs_card_late_probe()
107 if (spcm) { in avs_card_late_probe()
108 hpcm->pcm = spcm; in avs_card_late_probe()
109 hpcm->device = spcm->device; in avs_card_late_probe()
111 __func__, i, hpcm->device, spcm); in avs_card_late_probe()
/linux-6.15/sound/soc/sof/intel/
H A Dhda-pcm.c192 struct snd_sof_pcm *spcm; in hda_dsp_pcm_pointer() local
195 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_pointer()
196 if (!spcm) { in hda_dsp_pcm_pointer()
204 pos = spcm->stream[substream->stream].posn.host_posn; in hda_dsp_pcm_pointer()
224 struct snd_sof_pcm *spcm; in hda_dsp_pcm_open() local
228 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_open()
229 if (!spcm) { in hda_dsp_pcm_open()
255 !spcm->stream[substream->stream].pause_supported)) in hda_dsp_pcm_open()
260 spcm->stream[substream->stream].d0i3_compatible) in hda_dsp_pcm_open()
302 if (spcm->stream[direction].dsp_max_burst_size_in_ms) in hda_dsp_pcm_open()
[all …]
H A Dhda-dsp.c532 struct snd_sof_pcm *spcm; in hda_dsp_d0i3_streaming_applicable() local
536 list_for_each_entry(spcm, &sdev->pcm_list, list) { in hda_dsp_d0i3_streaming_applicable()
538 substream = spcm->stream[dir].substream; in hda_dsp_d0i3_streaming_applicable()
542 if (!spcm->stream[dir].d0i3_compatible) in hda_dsp_d0i3_streaming_applicable()
/linux-6.15/sound/soc/sof/amd/
H A Dacp-pcm.c96 struct snd_sof_pcm *spcm; in acp_pcm_pointer() local
100 spcm = snd_sof_find_spcm_dai(scomp, rtd); in acp_pcm_pointer()
101 if (!spcm) { in acp_pcm_pointer()
107 stream = &spcm->stream[substream->stream]; in acp_pcm_pointer()
115 pos = spcm->stream[substream->stream].posn.host_posn; in acp_pcm_pointer()
/linux-6.15/sound/soc/sof/mediatek/
H A Dmtk-adsp-common.c188 struct snd_sof_pcm *spcm; in mtk_adsp_stream_pcm_pointer() local
192 spcm = snd_sof_find_spcm_dai(scomp, rtd); in mtk_adsp_stream_pcm_pointer()
193 if (!spcm) { in mtk_adsp_stream_pcm_pointer()
199 stream = &spcm->stream[substream->stream]; in mtk_adsp_stream_pcm_pointer()
207 pos = spcm->stream[substream->stream].posn.host_posn; in mtk_adsp_stream_pcm_pointer()
/linux-6.15/include/trace/events/
H A Dsof.h64 struct snd_sof_pcm *spcm,
69 TP_ARGS(sdev, spcm, substream, dma_posn, dai_posn),
79 __entry->pcm_id = le32_to_cpu(spcm->pcm.pcm_id);