Home
last modified time | relevance | path

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

/linux/sound/soc/sof/
H A Dpcm.c48 struct snd_sof_pcm *spcm; in snd_sof_pcm_period_elapsed() local
50 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_pcm_period_elapsed()
51 if (!spcm) { in snd_sof_pcm_period_elapsed()
65 schedule_work(&spcm->stream[substream->stream].period_elapsed_work); in snd_sof_pcm_period_elapsed()
71 struct snd_sof_pcm *spcm, struct snd_pcm_hw_params *params, in sof_pcm_setup_connected_widgets() argument
84 spcm_err(spcm, dir, "dai %s has no valid %s path\n", in sof_pcm_setup_connected_widgets()
89 spcm->stream[dir].list = list; in sof_pcm_setup_connected_widgets()
91 ret = sof_widget_list_prepare(sdev, spcm, params, platform_params, dir); in sof_pcm_setup_connected_widgets()
93 spcm_err(spcm, dir, "widget list prepare failed\n"); in sof_pcm_setup_connected_widgets()
94 spcm in sof_pcm_setup_connected_widgets()
112 struct snd_sof_pcm *spcm; sof_pcm_hw_params() local
178 sof_pcm_stream_free(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream,struct snd_sof_pcm * spcm,int dir,bool free_widget_list) sof_pcm_stream_free() argument
231 struct snd_sof_pcm *spcm; sof_pcm_free_all_streams() local
259 struct snd_sof_pcm *spcm; sof_pcm_hw_free() local
284 struct snd_sof_pcm *spcm; sof_pcm_prepare() local
332 struct snd_sof_pcm *spcm; sof_pcm_trigger() local
444 struct snd_sof_pcm *spcm; sof_pcm_pointer() local
484 struct snd_sof_pcm *spcm; sof_pcm_open() local
545 struct snd_sof_pcm *spcm; sof_pcm_close() local
582 struct snd_sof_pcm *spcm; sof_pcm_new() local
[all...]
H A Dcompress.c54 struct snd_sof_pcm *spcm; in snd_sof_compr_fragment_elapsed() local
64 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_compr_fragment_elapsed()
65 if (!spcm) { in snd_sof_compr_fragment_elapsed()
71 sof_set_transferred_bytes(sstream, spcm->stream[cstream->direction].posn.host_posn, in snd_sof_compr_fragment_elapsed()
75 schedule_work(&spcm->stream[cstream->direction].period_elapsed_work); in snd_sof_compr_fragment_elapsed()
85 struct snd_sof_pcm *spcm; in create_page_table() local
87 spcm = snd_sof_find_spcm_dai(component, rtd); in create_page_table()
88 if (!spcm) in create_page_table()
92 spcm->stream[dir].page_table.area, size); in create_page_table()
101 struct snd_sof_pcm *spcm; in sof_compr_open() local
[all …]
H A Dsof-audio.c552 int dir, struct snd_sof_pcm *spcm) in sof_set_up_widgets_in_path()
554 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_set_up_widgets_in_path()
586 err = sof_free_widgets_in_path(sdev, p->sink, dir, spcm); in sof_set_up_widgets_in_path()
602 int dir, struct snd_sof_pcm *spcm) in sof_set_up_widgets_in_path()
604 struct snd_sof_pcm_stream_pipeline_list *pipeline_list = &spcm->stream[dir].pipeline_list; in sof_set_up_widgets_in_path()
605 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list;
658 ret = sof_set_up_widgets_in_path(sdev, p->sink, dir, spcm); in sof_walk_widgets_in_order()
672 sof_walk_widgets_in_order(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, in sof_walk_widgets_in_order()
677 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_setup()
698 ret = sof_set_up_widgets_in_path(sdev, widget, dir, spcm); in sof_widget_list_setup()
505 sof_free_widgets_in_path(struct snd_sof_dev * sdev,struct snd_soc_dapm_widget * widget,int dir,struct snd_sof_pcm * spcm) sof_free_widgets_in_path() argument
545 sof_set_up_widgets_in_path(struct snd_sof_dev * sdev,struct snd_soc_dapm_widget * widget,int dir,struct snd_sof_pcm * spcm) sof_set_up_widgets_in_path() argument
607 sof_walk_widgets_in_order(struct snd_sof_dev * sdev,struct snd_sof_pcm * spcm,struct snd_pcm_hw_params * fe_params,struct snd_sof_platform_stream_params * platform_params,int dir,enum sof_widget_op op) sof_walk_widgets_in_order() argument
675 sof_widget_list_setup(struct snd_sof_dev * sdev,struct snd_sof_pcm * spcm,struct snd_pcm_hw_params * fe_params,struct snd_sof_platform_stream_params * platform_params,int dir) sof_widget_list_setup() argument
762 sof_widget_list_free(struct snd_sof_dev * sdev,struct snd_sof_pcm * spcm,int dir) sof_widget_list_free() argument
793 struct snd_sof_pcm *spcm; snd_sof_dsp_only_d0i3_compatible_stream_active() local
821 struct snd_sof_pcm *spcm; snd_sof_stream_suspend_ignored() local
840 struct snd_sof_pcm *spcm; snd_sof_find_spcm_name() local
866 struct snd_sof_pcm *spcm; snd_sof_find_spcm_comp() local
[all...]
H A Dipc4-pcm.c313 struct snd_sof_pcm *spcm, int direction, in sof_ipc4_chain_dma_trigger() argument
323 stream_priv = spcm->stream[direction].private; in sof_ipc4_chain_dma_trigger()
354 spcm_err(spcm, direction, "Unexpected pipeline state %d\n", state); in sof_ipc4_chain_dma_trigger()
374 spcm_err(spcm, direction, in sof_ipc4_chain_dma_trigger()
425 struct snd_sof_pcm *spcm; in sof_ipc4_trigger_pipelines() local
430 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_ipc4_trigger_pipelines()
431 if (!spcm) in sof_ipc4_trigger_pipelines()
434 spcm_dbg(spcm, substream->stream, "cmd: %d, state: %d\n", cmd, state); in sof_ipc4_trigger_pipelines()
436 pipeline_list = &spcm->stream[substream->stream].pipeline_list; in sof_ipc4_trigger_pipelines()
453 time_info = sof_ipc4_sps_to_time_info(&spcm->stream[substream->stream]); in sof_ipc4_trigger_pipelines()
[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()
33 stream.comp_id = spcm->stream[substream->stream].comp_id; 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()
65 pcm.comp_id = spcm->stream[substream->stream].comp_id; in sof_ipc3_pcm_hw_params()
67 pcm.params.buffer.phy_addr = spcm->stream[substream->stream].page_table.addr; in sof_ipc3_pcm_hw_params()
[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);
604 struct snd_sof_pcm *spcm, int direction, in snd_sof_find_spcm_dai()
620 struct snd_sof_pcm *spcm;
622 list_for_each_entry(spcm, &sdev->pcm_list, list) {
623 if (le32_to_cpu(spcm->pcm.dai_id) == rtd->dai_link->id)
624 return spcm;
682 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm,
686 int sof_widget_list_prepare(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm,
690 void sof_widget_list_unprepare(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, in
605 struct snd_sof_pcm *spcm; snd_sof_find_spcm_dai() local
[all...]
H A Dtopology.c1173 static int spcm_bind(struct snd_soc_component *scomp, struct snd_sof_pcm *spcm, in spcm_bind() argument
1183 spcm->pcm.caps[dir].name, in spcm_bind()
1190 spcm->stream[dir].comp_id = host_widget->comp_id; in spcm_bind()
1734 struct snd_sof_pcm *spcm; in sof_dai_load() local
1742 spcm = kzalloc_obj(*spcm); in sof_dai_load()
1743 if (!spcm) in sof_dai_load()
1746 spcm->scomp = scomp; in sof_dai_load()
1749 spcm->stream[stream].comp_id = COMP_ID_UNASSIGNED; in sof_dai_load()
1751 snd_sof_compr_init_elapsed_work(&spcm->stream[stream].period_elapsed_work); in sof_dai_load()
1753 snd_sof_pcm_init_elapsed_work(&spcm->stream[stream].period_elapsed_work); in sof_dai_load()
[all …]
H A Dipc3.c867 struct snd_sof_pcm *spcm; in ipc3_period_elapsed()
870 spcm = snd_sof_find_spcm_comp(scomp, msg_id, &direction); in ipc3_period_elapsed()
871 if (!spcm) { in ipc3_period_elapsed() local
877 stream = &spcm->stream[direction]; in ipc3_period_elapsed()
888 if (spcm->pcm.compress) in ipc3_period_elapsed()
902 struct snd_sof_pcm *spcm; in ipc3_xrun()
905 spcm = snd_sof_find_spcm_comp(scomp, msg_id, &direction); in ipc3_xrun()
906 if (!spcm) { in ipc3_xrun() local
912 stream = &spcm->stream[direction]; in ipc3_xrun()
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()
H A Dipc4-topology.c577 struct snd_sof_pcm *spcm, int dir) in sof_ipc4_update_card_components_string() argument
581 struct snd_soc_component *scomp = spcm->scomp; in sof_ipc4_update_card_components_string()
600 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string()
606 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string()
612 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string()
626 struct snd_sof_pcm *spcm; in sof_ipc4_widget_setup_pcm() local
662 spcm = snd_sof_find_spcm_comp(scomp, swidget->comp_id, &dir); in sof_ipc4_widget_setup_pcm()
663 if (!spcm) in sof_ipc4_widget_setup_pcm()
666 ret = sof_ipc4_update_card_components_string(swidget, spcm, dir); in sof_ipc4_widget_setup_pcm()
671 struct snd_sof_pcm_stream *sps = &spcm->stream[dir]; in sof_ipc4_widget_setup_pcm()
[all …]
/linux/sound/soc/intel/boards/
H A Dhda_dsp_common.c24 struct snd_pcm *spcm; in hda_dsp_hdmi_pcm_handle() local
32 spcm = rtd->pcm; in hda_dsp_hdmi_pcm_handle()
35 if (!spcm || !spcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) in hda_dsp_hdmi_pcm_handle()
39 if (spcm && strstr(spcm->id, "HDMI")) { in hda_dsp_hdmi_pcm_handle()
58 struct snd_pcm *spcm; in hda_dsp_hdmi_build_controls() local
69 spcm = hda_dsp_hdmi_pcm_handle(card, i); in hda_dsp_hdmi_build_controls()
70 if (spcm) { in hda_dsp_hdmi_build_controls()
71 hpcm->pcm = spcm; in hda_dsp_hdmi_build_controls()
72 hpcm->device = spcm->device; in hda_dsp_hdmi_build_controls()
75 i, hpcm->device, spcm); in hda_dsp_hdmi_build_controls()
/linux/sound/soc/sof/intel/
H A Dhda-pcm.c194 struct snd_sof_pcm *spcm; in hda_dsp_pcm_pointer() local
197 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_pointer()
198 if (!spcm) { in hda_dsp_pcm_pointer()
206 pos = spcm->stream[substream->stream].posn.host_posn; in hda_dsp_pcm_pointer()
226 struct snd_sof_pcm *spcm; in hda_dsp_pcm_open() local
230 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_open()
231 if (!spcm) { in hda_dsp_pcm_open()
257 !spcm->stream[substream->stream].pause_supported)) in hda_dsp_pcm_open()
262 spcm->stream[substream->stream].d0i3_compatible) in hda_dsp_pcm_open()
305 if (spcm->stream[direction].dsp_max_burst_size_in_ms) { in hda_dsp_pcm_open()
[all …]
H A Dhda-dsp.c533 struct snd_sof_pcm *spcm; in hda_dsp_d0i3_streaming_applicable() local
537 list_for_each_entry(spcm, &sdev->pcm_list, list) { in hda_dsp_d0i3_streaming_applicable()
539 substream = spcm->stream[dir].substream; in hda_dsp_d0i3_streaming_applicable()
543 if (!spcm->stream[dir].d0i3_compatible) in hda_dsp_d0i3_streaming_applicable()
/linux/sound/soc/intel/avs/boards/
H A Dhdaudio.c79 struct snd_pcm *spcm; in avs_card_hdmi_pcm_at() local
82 spcm = rtd->pcm ? rtd->pcm->streams[dir].pcm : NULL; in avs_card_hdmi_pcm_at()
83 if (!spcm || !strstr(spcm->id, FEDAI_NAME_PREFIX)) in avs_card_hdmi_pcm_at()
86 ret = sscanf(spcm->id, FEDAI_NAME_PREFIX "%d", &n); in avs_card_hdmi_pcm_at()
106 struct snd_pcm *spcm; in avs_card_late_probe() local
108 spcm = avs_card_hdmi_pcm_at(card, i); in avs_card_late_probe()
109 if (spcm) { in avs_card_late_probe()
110 hpcm->pcm = spcm; in avs_card_late_probe()
111 hpcm->device = spcm->device; in avs_card_late_probe()
113 __func__, i, hpcm->device, spcm); in avs_card_late_probe()
/linux/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/sound/soc/sof/mediatek/
H A Dmtk-adsp-common.c186 struct snd_sof_pcm *spcm; in mtk_adsp_stream_pcm_pointer()
190 spcm = snd_sof_find_spcm_dai(scomp, rtd); in mtk_adsp_stream_pcm_pointer()
191 if (!spcm) { in mtk_adsp_stream_pcm_pointer()
197 stream = &spcm->stream[substream->stream]; in mtk_adsp_stream_pcm_pointer()
205 pos = spcm->stream[substream->stream].posn.host_posn; in mtk_adsp_stream_pcm_pointer()
188 struct snd_sof_pcm *spcm; mtk_adsp_stream_pcm_pointer() local
/linux/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);