/linux/sound/soc/sof/ |
H A D | pcm.c | 29 struct snd_sof_pcm *spcm; in create_page_table() local 33 spcm = snd_sof_find_spcm_dai(component, rtd); in create_page_table() 34 if (!spcm) in create_page_table() 38 spcm->stream[stream].page_table.area, size); in create_page_table() 66 struct snd_sof_pcm *spcm; in snd_sof_pcm_period_elapsed() local 68 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_pcm_period_elapsed() 69 if (!spcm) { in snd_sof_pcm_period_elapsed() 83 schedule_work(&spcm->stream[substream->stream].period_elapsed_work); in snd_sof_pcm_period_elapsed() 89 struct snd_sof_pcm *spcm, struct snd_pcm_hw_params *params, in sof_pcm_setup_connected_widgets() argument 107 spcm->stream[dir].list = list; in sof_pcm_setup_connected_widgets() [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 | sof-audio.c | 505 int dir, struct snd_sof_pcm *spcm) in sof_free_widgets_in_path() argument 507 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_free_widgets_in_path() 529 err = sof_free_widgets_in_path(sdev, p->sink, dir, spcm); in sof_free_widgets_in_path() 545 int dir, struct snd_sof_pcm *spcm) in sof_set_up_widgets_in_path() argument 547 struct snd_sof_pcm_stream_pipeline_list *pipeline_list = &spcm->stream[dir].pipeline_list; in sof_set_up_widgets_in_path() 548 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_set_up_widgets_in_path() 593 ret = sof_set_up_widgets_in_path(sdev, p->sink, dir, spcm); in sof_set_up_widgets_in_path() 607 sof_walk_widgets_in_order(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, in sof_walk_widgets_in_order() argument 612 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_walk_widgets_in_order() 635 ret = sof_set_up_widgets_in_path(sdev, widget, dir, spcm); in sof_walk_widgets_in_order() [all …]
|
H A D | ipc3-pcm.c | 22 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 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); 586 struct snd_sof_pcm *spcm, int direction, 602 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_dai() 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() 645 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, 649 int sof_widget_list_free(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir); 651 struct snd_sof_pcm *spcm); 601 struct snd_sof_pcm *spcm; snd_sof_find_spcm_dai() local [all...] |
H A D | topology.c | 1155 static int spcm_bind(struct snd_soc_component *scomp, struct snd_sof_pcm *spcm, in spcm_bind() 1165 spcm->pcm.caps[dir].name, in spcm_bind() 1172 spcm->stream[dir].comp_id = host_widget->comp_id; 1716 struct snd_sof_pcm *spcm; in sof_dai_load() 1724 spcm = kzalloc(sizeof(*spcm), GFP_KERNEL); in sof_dai_load() 1725 if (!spcm) in sof_dai_load() 1728 spcm->scomp = scomp; in sof_dai_load() 1731 spcm->stream[stream].comp_id = COMP_ID_UNASSIGNED; in sof_dai_load() 1733 snd_sof_compr_init_elapsed_work(&spcm in sof_dai_load() 1151 spcm_bind(struct snd_soc_component * scomp,struct snd_sof_pcm * spcm,int dir) spcm_bind() argument 1712 struct snd_sof_pcm *spcm; sof_dai_load() local 1825 struct snd_sof_pcm *spcm = dobj->private; sof_dai_unload() local [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() 2389 struct snd_sof_pcm *spcm; in sof_tear_down_left_over_pipelines() local [all …]
|
H A D | ipc4-topology.c | 516 struct snd_sof_pcm *spcm, int dir) in sof_ipc4_update_card_components_string() argument 520 struct snd_soc_component *scomp = spcm->scomp; in sof_ipc4_update_card_components_string() 539 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string() 545 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string() 551 spcm->pcm.pcm_id); in sof_ipc4_update_card_components_string() 565 struct snd_sof_pcm *spcm; in sof_ipc4_widget_setup_pcm() local 601 spcm = snd_sof_find_spcm_comp(scomp, swidget->comp_id, &dir); in sof_ipc4_widget_setup_pcm() 602 if (!spcm) in sof_ipc4_widget_setup_pcm() 605 ret = sof_ipc4_update_card_components_string(swidget, spcm, dir); in sof_ipc4_widget_setup_pcm() 610 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 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/sof/intel/ |
H A D | hda-pcm.c | 192 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 D | hda-dsp.c | 532 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/ |
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);
|
/linux/sound/soc/sof/mediatek/mt8195/ |
H A D | mt8195.c | 424 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/ |
H A D | mt8186.c | 405 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()
|