/linux-6.1.9/sound/soc/sof/ |
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 …]
|
D | compress.c | 53 struct snd_sof_pcm *spcm; in snd_sof_compr_fragment_elapsed() local 63 spcm = snd_sof_find_spcm_dai(component, rtd); in snd_sof_compr_fragment_elapsed() 64 if (!spcm) { in snd_sof_compr_fragment_elapsed() 70 sof_set_transferred_bytes(sstream, spcm->stream[cstream->direction].posn.host_posn, in snd_sof_compr_fragment_elapsed() 74 schedule_work(&spcm->stream[cstream->direction].period_elapsed_work); in snd_sof_compr_fragment_elapsed() 84 struct snd_sof_pcm *spcm; in create_page_table() local 86 spcm = snd_sof_find_spcm_dai(component, rtd); in create_page_table() 87 if (!spcm) in create_page_table() 91 spcm->stream[dir].page_table.area, size); in create_page_table() 100 struct snd_sof_pcm *spcm; in sof_compr_open() local [all …]
|
D | sof-audio.c | 481 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, in sof_widget_list_setup() argument 487 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_setup() 559 int sof_widget_list_free(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir) in sof_widget_list_free() argument 561 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_free() 575 spcm->stream[dir].list = NULL; in sof_widget_list_free() 587 struct snd_sof_pcm *spcm; in snd_sof_dsp_only_d0i3_compatible_stream_active() local 591 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_dsp_only_d0i3_compatible_stream_active() 593 substream = spcm->stream[dir].substream; in snd_sof_dsp_only_d0i3_compatible_stream_active() 602 if (!spcm->stream[dir].d0i3_compatible) in snd_sof_dsp_only_d0i3_compatible_stream_active() 615 struct snd_sof_pcm *spcm; in snd_sof_stream_suspend_ignored() local [all …]
|
D | ipc3-pcm.c | 23 struct snd_sof_pcm *spcm; in sof_ipc3_pcm_hw_free() local 25 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_ipc3_pcm_hw_free() 26 if (!spcm) in sof_ipc3_pcm_hw_free() 29 if (!spcm->prepared[substream->stream]) in sof_ipc3_pcm_hw_free() 34 stream.comp_id = spcm->stream[substream->stream].comp_id; in sof_ipc3_pcm_hw_free() 51 struct snd_sof_pcm *spcm; in sof_ipc3_pcm_hw_params() local 54 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_ipc3_pcm_hw_params() 55 if (!spcm) in sof_ipc3_pcm_hw_params() 66 pcm.comp_id = spcm->stream[substream->stream].comp_id; in sof_ipc3_pcm_hw_params() 68 pcm.params.buffer.phy_addr = spcm->stream[substream->stream].page_table.addr; in sof_ipc3_pcm_hw_params() [all …]
|
D | sof-audio.h | 461 struct snd_sof_pcm *spcm, int direction, 477 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_dai() local 479 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_dai() 480 if (le32_to_cpu(spcm->pcm.dai_id) == rtd->dai_link->id) in snd_sof_find_spcm_dai() 481 return spcm; in snd_sof_find_spcm_dai() 520 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, 524 int sof_widget_list_free(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir); 526 struct snd_sof_pcm *spcm); 528 struct snd_sof_pcm *spcm, int dir, bool free_widget_list);
|
D | topology.c | 1121 static int spcm_bind(struct snd_soc_component *scomp, struct snd_sof_pcm *spcm, in spcm_bind() argument 1127 spcm->pcm.caps[dir].name, in spcm_bind() 1134 spcm->stream[dir].comp_id = host_widget->comp_id; in spcm_bind() 1495 struct snd_sof_pcm *spcm; in sof_dai_load() local 1503 spcm = kzalloc(sizeof(*spcm), GFP_KERNEL); in sof_dai_load() 1504 if (!spcm) in sof_dai_load() 1507 spcm->scomp = scomp; in sof_dai_load() 1510 spcm->stream[stream].comp_id = COMP_ID_UNASSIGNED; in sof_dai_load() 1512 snd_sof_compr_init_elapsed_work(&spcm->stream[stream].period_elapsed_work); in sof_dai_load() 1514 snd_sof_pcm_init_elapsed_work(&spcm->stream[stream].period_elapsed_work); in sof_dai_load() [all …]
|
D | ipc4-pcm.c | 45 struct snd_sof_pcm *spcm; in sof_ipc4_trigger_pipelines() local 49 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_ipc4_trigger_pipelines() 50 if (!spcm) in sof_ipc4_trigger_pipelines() 53 list = spcm->stream[substream->stream].list; in sof_ipc4_trigger_pipelines()
|
D | ipc3.c | 839 struct snd_sof_pcm *spcm; in ipc3_period_elapsed() local 842 spcm = snd_sof_find_spcm_comp(scomp, msg_id, &direction); in ipc3_period_elapsed() 843 if (!spcm) { in ipc3_period_elapsed() 849 stream = &spcm->stream[direction]; in ipc3_period_elapsed() 860 if (spcm->pcm.compress) in ipc3_period_elapsed() 874 struct snd_sof_pcm *spcm; in ipc3_xrun() local 877 spcm = snd_sof_find_spcm_comp(scomp, msg_id, &direction); in ipc3_xrun() 878 if (!spcm) { in ipc3_xrun() 884 stream = &spcm->stream[direction]; in ipc3_xrun()
|
D | ipc3-topology.c | 1780 struct snd_sof_pcm *spcm; in sof_ipc3_keyword_detect_pcm_params() local 1784 spcm = snd_sof_find_spcm_name(scomp, swidget->widget->sname); in sof_ipc3_keyword_detect_pcm_params() 1785 if (!spcm) { in sof_ipc3_keyword_detect_pcm_params() 1790 params = &spcm->params[dir]; in sof_ipc3_keyword_detect_pcm_params() 1858 struct snd_sof_pcm *spcm; in sof_ipc3_keyword_dapm_event() local 1870 spcm = snd_sof_find_spcm_name(scomp, swidget->widget->sname); in sof_ipc3_keyword_dapm_event() 1871 if (!spcm) { in sof_ipc3_keyword_dapm_event() 1880 if (spcm->stream[stream].suspend_ignored) { in sof_ipc3_keyword_dapm_event() 1900 if (spcm->stream[stream].suspend_ignored) { in sof_ipc3_keyword_dapm_event() 2232 struct snd_sof_pcm *spcm; in sof_tear_down_left_over_pipelines() local [all …]
|
/linux-6.1.9/sound/soc/intel/boards/ |
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-6.1.9/sound/soc/intel/avs/boards/ |
D | hdaudio.c | 126 struct snd_pcm *spcm; in avs_card_hdmi_pcm_at() local 129 spcm = rtd->pcm ? rtd->pcm->streams[dir].pcm : NULL; in avs_card_hdmi_pcm_at() 130 if (!spcm || !strstr(spcm->id, FEDAI_NAME_PREFIX)) in avs_card_hdmi_pcm_at() 133 ret = sscanf(spcm->id, FEDAI_NAME_PREFIX "%d", &n); in avs_card_hdmi_pcm_at() 152 struct snd_pcm *spcm; in avs_card_late_probe() local 154 spcm = avs_card_hdmi_pcm_at(card, i); in avs_card_late_probe() 155 if (spcm) { in avs_card_late_probe() 156 hpcm->pcm = spcm; in avs_card_late_probe() 157 hpcm->device = spcm->device; in avs_card_late_probe() 159 __func__, i, hpcm->device, spcm); in avs_card_late_probe()
|
/linux-6.1.9/sound/soc/sof/intel/ |
D | hda-pcm.c | 180 struct snd_sof_pcm *spcm; in hda_dsp_pcm_pointer() local 183 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_pointer() 184 if (!spcm) { in hda_dsp_pcm_pointer() 192 pos = spcm->stream[substream->stream].posn.host_posn; in hda_dsp_pcm_pointer() 211 struct snd_sof_pcm *spcm; in hda_dsp_pcm_open() local 215 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_open() 216 if (!spcm) { in hda_dsp_pcm_open() 237 spcm->stream[substream->stream].d0i3_compatible) in hda_dsp_pcm_open()
|
/linux-6.1.9/include/trace/events/ |
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-6.1.9/sound/soc/sof/mediatek/mt8186/ |
D | mt8186.c | 478 struct snd_sof_pcm *spcm; in mt8186_pcm_pointer() local 484 spcm = snd_sof_find_spcm_dai(scomp, rtd); in mt8186_pcm_pointer() 485 if (!spcm) { in mt8186_pcm_pointer() 491 stream = &spcm->stream[substream->stream]; in mt8186_pcm_pointer() 499 pos = spcm->stream[substream->stream].posn.host_posn; in mt8186_pcm_pointer()
|
/linux-6.1.9/sound/soc/sof/mediatek/mt8195/ |
D | mt8195.c | 514 struct snd_sof_pcm *spcm; in mt8195_pcm_pointer() local 520 spcm = snd_sof_find_spcm_dai(scomp, rtd); in mt8195_pcm_pointer() 521 if (!spcm) { in mt8195_pcm_pointer() 527 stream = &spcm->stream[substream->stream]; in mt8195_pcm_pointer() 535 pos = spcm->stream[substream->stream].posn.host_posn; in mt8195_pcm_pointer()
|