| /linux/sound/soc/sof/ |
| H A D | pcm.c | 48 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 queue_work(system_highpri_wq, &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 D | compress.c | 54 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 138 struct snd_sof_pcm *spcm; sof_compr_free() local 173 struct snd_sof_pcm *spcm; sof_compr_set_params() local 282 struct snd_sof_pcm *spcm; sof_compr_trigger() local 374 struct snd_sof_pcm *spcm; sof_compr_pointer() local [all...] |
| H A D | sof-audio.c | 550 int dir, struct snd_sof_pcm *spcm) in sof_free_widgets_in_path() argument 552 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_free_widgets_in_path() 584 err = sof_free_widgets_in_path(sdev, p->sink, dir, spcm); in sof_free_widgets_in_path() 600 int dir, struct snd_sof_pcm *spcm) in sof_set_up_widgets_in_path() argument 602 struct snd_sof_pcm_stream_pipeline_list *pipeline_list = &spcm->stream[dir].pipeline_list; in sof_set_up_widgets_in_path() 603 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_set_up_widgets_in_path() 656 ret = sof_set_up_widgets_in_path(sdev, p->sink, dir, spcm); in sof_set_up_widgets_in_path() 670 sof_walk_widgets_in_order(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, in sof_walk_widgets_in_order() argument 675 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_walk_widgets_in_order() 696 ret = sof_set_up_widgets_in_path(sdev, widget, dir, spcm); in sof_walk_widgets_in_order() [all …]
|
| H A D | ipc4-pcm.c | 313 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 D | sof-audio.h | 131 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; 685 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, 689 int sof_widget_list_prepare(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, 693 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 D | topology.c | 1191 static int spcm_bind(struct snd_soc_component *scomp, struct snd_sof_pcm *spcm, in spcm_bind() 1201 spcm->pcm.caps[dir].name, in sof_get_token_value() 1208 spcm->stream[dir].comp_id = host_widget->comp_id; in sof_get_token_value() 1759 struct snd_sof_pcm *spcm; in sof_dai_load() 1767 spcm = kzalloc_obj(*spcm); in sof_dai_load() 1768 if (!spcm) in sof_dai_load() 1771 spcm->scomp = scomp; in sof_dai_load() 1774 spcm->stream[stream].comp_id = COMP_ID_UNASSIGNED; in sof_dai_load() 1776 snd_sof_compr_init_elapsed_work(&spcm in sof_dai_load() 1175 spcm_bind(struct snd_soc_component * scomp,struct snd_sof_pcm * spcm,int dir) spcm_bind() argument 1736 struct snd_sof_pcm *spcm; sof_dai_load() local 1849 struct snd_sof_pcm *spcm = dobj->private; sof_dai_unload() local [all...] |
| H A D | ipc3-topology.c | 1954 struct snd_sof_pcm *spcm; in sof_ipc3_keyword_detect_pcm_params() 1958 spcm = snd_sof_find_spcm_name(scomp, swidget->widget->sname); 1959 if (!spcm) { in sof_ipc3_keyword_detect_trigger() 1964 params = &spcm->params[dir]; in sof_ipc3_keyword_detect_trigger() 2030 struct snd_sof_pcm *spcm; in sof_ipc3_keyword_dapm_event() 2042 spcm = snd_sof_find_spcm_name(scomp, swidget->widget->sname); in sof_ipc3_keyword_dapm_event() 2043 if (!spcm) { in sof_ipc3_keyword_dapm_event() 2052 if (spcm->stream[stream].suspend_ignored) { 2072 if (spcm->stream[stream].suspend_ignored) { in sof_ipc3_widget_bind_event() 1909 struct snd_sof_pcm *spcm; sof_ipc3_keyword_detect_pcm_params() local 1985 struct snd_sof_pcm *spcm; sof_ipc3_keyword_dapm_event() local
|
| H A D | ipc4-topology.c | 630 struct snd_sof_pcm *spcm, int dir) in sof_ipc4_update_card_components_string() argument 634 struct snd_soc_component *scomp = spcm->scomp; in sof_ipc4_update_card_components_string() 637 unsigned pcm_id = le32_to_cpu(spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string() 681 struct snd_sof_pcm *spcm; in sof_ipc4_widget_setup_pcm() local 720 spcm = snd_sof_find_spcm_comp(scomp, swidget->comp_id, &dir); in sof_ipc4_widget_setup_pcm() 721 if (!spcm) in sof_ipc4_widget_setup_pcm() 724 ret = sof_ipc4_update_card_components_string(swidget, spcm, dir); in sof_ipc4_widget_setup_pcm() 728 sps = &spcm->stream[dir]; in sof_ipc4_widget_setup_pcm()
|
| /linux/sound/soc/intel/boards/ |
| H A D | hda_dsp_common.c | 24 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")) { 58 struct snd_pcm *spcm; in hda_dsp_hdmi_build_controls() 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() 49 struct snd_pcm *spcm; hda_dsp_hdmi_build_controls() local [all...] |
| /linux/sound/soc/sof/intel/ |
| H A D | hda-pcm.c | 194 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() 227 struct snd_sof_pcm *spcm; in hda_dsp_pcm_open() local 231 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_open() 232 if (!spcm) { in hda_dsp_pcm_open() 258 !spcm->stream[substream->stream].pause_supported)) in hda_dsp_pcm_open() 263 spcm->stream[substream->stream].d0i3_compatible) in hda_dsp_pcm_open() 315 if (spcm->stream[direction].dsp_max_burst_size_in_ms) { in hda_dsp_pcm_open() [all …]
|
| /linux/sound/soc/sof/amd/ |
| H A D | acp-pcm.c | 96 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/ |
| H A D | sof.h | 64 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);
|