| /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 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 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 [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; 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 D | topology.c | 1173 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 D | ipc3-topology.c | 1909 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 D | ipc4-topology.c | 577 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 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() 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 …]
|
| /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);
|