Home
last modified time | relevance | path

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

/linux/sound/soc/sof/
A Dpcm.c29 struct snd_sof_pcm *spcm; in create_page_table() local
34 if (!spcm) in create_page_table()
69 if (!spcm) { in snd_sof_pcm_period_elapsed()
139 if (!spcm) in sof_pcm_hw_params()
207 if (!spcm) in sof_pcm_hw_free()
233 if (!spcm) in sof_pcm_prepare()
284 if (!spcm) in sof_pcm_trigger()
406 if (!spcm) in sof_pcm_pointer()
436 if (!spcm) in sof_pcm_open()
498 if (!spcm) in sof_pcm_close()
[all …]
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 …]
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
889 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_name() local
894 return spcm; in snd_sof_find_spcm_name()
897 if (*spcm->pcm.caps[0].name && in snd_sof_find_spcm_name()
899 return spcm; in snd_sof_find_spcm_name()
902 if (*spcm->pcm.caps[1].name && in snd_sof_find_spcm_name()
904 return spcm; in snd_sof_find_spcm_name()
915 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_comp() local
[all …]
A Dipc4-pcm.c387 struct snd_sof_pcm *spcm; in sof_ipc4_trigger_pipelines() local
395 if (!spcm) in sof_ipc4_trigger_pipelines()
785 sof_ipc4_pcm_free(sdev, spcm); in sof_ipc4_pcm_setup()
791 sof_ipc4_pcm_free(sdev, spcm); in sof_ipc4_pcm_setup()
802 sof_ipc4_pcm_free(sdev, spcm); in sof_ipc4_pcm_setup()
891 struct snd_sof_pcm *spcm; in sof_ipc4_pcm_hw_params() local
894 if (!spcm) in sof_ipc4_pcm_hw_params()
968 struct snd_sof_pcm *spcm; in sof_ipc4_pcm_pointer() local
972 if (!spcm) in sof_ipc4_pcm_pointer()
1078 struct snd_sof_pcm *spcm; in sof_ipc4_pcm_delay() local
[all …]
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()
135 __func__, spcm->pcm.pcm_id); in sof_ipc3_pcm_hw_params()
148 struct snd_sof_pcm *spcm; in sof_ipc3_pcm_trigger() local
150 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_ipc3_pcm_trigger()
[all …]
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);
585 struct snd_sof_pcm *spcm, int direction,
601 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_dai() local
603 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_dai()
604 if (le32_to_cpu(spcm->pcm.dai_id) == rtd->dai_link->id) in snd_sof_find_spcm_dai()
605 return spcm; in snd_sof_find_spcm_dai()
644 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm,
648 int sof_widget_list_free(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir);
650 struct snd_sof_pcm *spcm);
[all …]
A Dtopology.c1720 spcm = kzalloc(sizeof(*spcm), GFP_KERNEL); in sof_dai_load()
1721 if (!spcm) in sof_dai_load()
1724 spcm->scomp = scomp; in sof_dai_load()
1734 spcm->pcm = *pcm; in sof_dai_load()
1741 kfree(spcm); in sof_dai_load()
1788 if (!spcm->pcm.capture) in sof_dai_load()
1814 if (spcm->pcm.playback) in sof_dai_load()
1828 if (spcm->pcm.playback) in sof_dai_unload()
1831 if (spcm->pcm.capture) in sof_dai_unload()
1839 list_del(&spcm->list); in sof_dai_unload()
[all …]
A Dipc3.c875 struct snd_sof_pcm *spcm; in ipc3_period_elapsed() local
878 spcm = snd_sof_find_spcm_comp(scomp, msg_id, &direction); in ipc3_period_elapsed()
879 if (!spcm) { in ipc3_period_elapsed()
885 stream = &spcm->stream[direction]; in ipc3_period_elapsed()
896 if (spcm->pcm.compress) in ipc3_period_elapsed()
910 struct snd_sof_pcm *spcm; in ipc3_xrun() local
913 spcm = snd_sof_find_spcm_comp(scomp, msg_id, &direction); in ipc3_xrun()
914 if (!spcm) { in ipc3_xrun()
920 stream = &spcm->stream[direction]; in ipc3_xrun()
A Dipc3-topology.c1894 struct snd_sof_pcm *spcm; in sof_ipc3_keyword_detect_pcm_params() local
1898 spcm = snd_sof_find_spcm_name(scomp, swidget->widget->sname); in sof_ipc3_keyword_detect_pcm_params()
1899 if (!spcm) { in sof_ipc3_keyword_detect_pcm_params()
1904 params = &spcm->params[dir]; in sof_ipc3_keyword_detect_pcm_params()
1970 struct snd_sof_pcm *spcm; in sof_ipc3_keyword_dapm_event() local
1983 if (!spcm) { in sof_ipc3_keyword_dapm_event()
1992 if (spcm->stream[stream].suspend_ignored) { in sof_ipc3_keyword_dapm_event()
2012 if (spcm->stream[stream].suspend_ignored) { in sof_ipc3_keyword_dapm_event()
2366 struct snd_sof_pcm *spcm; in sof_tear_down_left_over_pipelines() local
2374 list_for_each_entry(spcm, &sdev->pcm_list, list) { in sof_tear_down_left_over_pipelines()
[all …]
A Dipc4-topology.c421 struct snd_sof_pcm *spcm, int dir) in sof_ipc4_update_card_components_string() argument
425 struct snd_soc_component *scomp = spcm->scomp; in sof_ipc4_update_card_components_string()
444 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string()
450 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string()
456 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string()
470 struct snd_sof_pcm *spcm; in sof_ipc4_widget_setup_pcm() local
507 if (!spcm) in sof_ipc4_widget_setup_pcm()
526 spcm->stream[dir].dsp_max_burst_size_in_ms = 1; in sof_ipc4_widget_setup_pcm()
3284 struct snd_sof_pcm *spcm; in sof_ipc4_tear_down_all_pipelines() local
3298 list_for_each_entry(spcm, &sdev->pcm_list, list) { in sof_ipc4_tear_down_all_pipelines()
[all …]
/linux/sound/soc/intel/boards/
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/sound/soc/intel/avs/boards/
A Dhdaudio.c80 struct snd_pcm *spcm; in avs_card_hdmi_pcm_at() local
83 spcm = rtd->pcm ? rtd->pcm->streams[dir].pcm : NULL; in avs_card_hdmi_pcm_at()
84 if (!spcm || !strstr(spcm->id, FEDAI_NAME_PREFIX)) in avs_card_hdmi_pcm_at()
87 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/intel/
A Dhda-pcm.c187 struct snd_sof_pcm *spcm; in hda_dsp_pcm_pointer() local
190 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_pointer()
191 if (!spcm) { in hda_dsp_pcm_pointer()
199 pos = spcm->stream[substream->stream].posn.host_posn; in hda_dsp_pcm_pointer()
219 struct snd_sof_pcm *spcm; in hda_dsp_pcm_open() local
223 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_open()
224 if (!spcm) { in hda_dsp_pcm_open()
245 spcm->stream[substream->stream].d0i3_compatible) in hda_dsp_pcm_open()
287 if (spcm->stream[direction].dsp_max_burst_size_in_ms) in hda_dsp_pcm_open()
290 spcm->stream[direction].dsp_max_burst_size_in_ms * USEC_PER_MSEC * 2, in hda_dsp_pcm_open()
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/sound/soc/sof/amd/
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/include/trace/events/
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);
/linux/sound/soc/sof/mediatek/mt8195/
A Dmt8195.c424 struct snd_sof_pcm *spcm; in mt8195_pcm_pointer() local
430 spcm = snd_sof_find_spcm_dai(scomp, rtd); in mt8195_pcm_pointer()
431 if (!spcm) { in mt8195_pcm_pointer()
437 stream = &spcm->stream[substream->stream]; in mt8195_pcm_pointer()
445 pos = spcm->stream[substream->stream].posn.host_posn; in mt8195_pcm_pointer()
/linux/sound/soc/sof/mediatek/mt8186/
A Dmt8186.c405 struct snd_sof_pcm *spcm; in mt8186_pcm_pointer() local
411 spcm = snd_sof_find_spcm_dai(scomp, rtd); in mt8186_pcm_pointer()
412 if (!spcm) { in mt8186_pcm_pointer()
418 stream = &spcm->stream[substream->stream]; in mt8186_pcm_pointer()
426 pos = spcm->stream[substream->stream].posn.host_posn; in mt8186_pcm_pointer()

Completed in 58 milliseconds