/linux-6.3-rc2/sound/soc/sof/ |
A D | pcm.c | 29 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() 208 if (!spcm) in sof_pcm_hw_free() 252 if (!spcm) in sof_pcm_prepare() 293 if (!spcm) in sof_pcm_trigger() 376 if (!spcm) in sof_pcm_pointer() 406 if (!spcm) in sof_pcm_open() 468 if (!spcm) in sof_pcm_close() [all …]
|
A D | compress.c | 54 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() 143 if (!spcm) in sof_compr_free() 192 if (!spcm) in sof_compr_set_params() 245 spcm->pcm.pcm_id); in sof_compr_set_params() 280 if (!spcm) in sof_compr_trigger() [all …]
|
A D | sof-audio.c | 668 spcm->stream[dir].list = NULL; in sof_widget_list_free() 682 struct snd_sof_pcm *spcm; in snd_sof_dsp_only_d0i3_compatible_stream_active() local 710 struct snd_sof_pcm *spcm; in snd_sof_stream_suspend_ignored() local 759 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_name() local 764 return spcm; in snd_sof_find_spcm_name() 767 if (*spcm->pcm.caps[0].name && in snd_sof_find_spcm_name() 769 return spcm; in snd_sof_find_spcm_name() 772 if (*spcm->pcm.caps[1].name && in snd_sof_find_spcm_name() 774 return spcm; in snd_sof_find_spcm_name() 785 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_comp() local [all …]
|
A D | ipc4-pcm.c | 205 struct snd_sof_pcm *spcm; in sof_ipc4_trigger_pipelines() local 212 if (!spcm) in sof_ipc4_trigger_pipelines() 415 kfree(spcm->stream[stream].private); in sof_ipc4_pcm_free() 416 spcm->stream[stream].private = NULL; in sof_ipc4_pcm_free() 444 sof_ipc4_pcm_free(sdev, spcm); in sof_ipc4_pcm_setup() 453 sof_ipc4_pcm_free(sdev, spcm); in sof_ipc4_pcm_setup() 494 info = spcm->private; in sof_ipc4_build_time_info() 544 struct snd_sof_pcm *spcm; in sof_ipc4_pcm_hw_params() local 605 struct snd_sof_pcm *spcm; in sof_ipc4_pcm_delay() local 610 if (!spcm) in sof_ipc4_pcm_delay() [all …]
|
A 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() 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() 136 __func__, spcm->pcm.pcm_id); in sof_ipc3_pcm_hw_params() 150 struct snd_sof_pcm *spcm; in sof_ipc3_pcm_trigger() local 152 spcm = snd_sof_find_spcm_dai(component, rtd); in sof_ipc3_pcm_trigger() [all …]
|
A D | sof-audio.h | 116 int (*pcm_setup)(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm); 117 void (*pcm_free)(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm); 552 struct snd_sof_pcm *spcm, int direction, 568 struct snd_sof_pcm *spcm; in snd_sof_find_spcm_dai() local 570 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_dai() 571 if (le32_to_cpu(spcm->pcm.dai_id) == rtd->dai_link->id) in snd_sof_find_spcm_dai() 572 return spcm; in snd_sof_find_spcm_dai() 611 int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, 615 int sof_widget_list_free(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir); 617 struct snd_sof_pcm *spcm); [all …]
|
A D | topology.c | 1682 spcm = kzalloc(sizeof(*spcm), GFP_KERNEL); in sof_dai_load() 1683 if (!spcm) in sof_dai_load() 1686 spcm->scomp = scomp; in sof_dai_load() 1696 spcm->pcm = *pcm; in sof_dai_load() 1719 if (!spcm->pcm.playback) in sof_dai_load() 1748 if (!spcm->pcm.capture) in sof_dai_load() 1774 if (spcm->pcm.playback) in sof_dai_load() 1788 if (spcm->pcm.playback) in sof_dai_unload() 1791 if (spcm->pcm.capture) in sof_dai_unload() 1799 list_del(&spcm->list); in sof_dai_unload() [all …]
|
A 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()
|
A D | ipc3-topology.c | 1803 struct snd_sof_pcm *spcm; in sof_ipc3_keyword_detect_pcm_params() local 1807 spcm = snd_sof_find_spcm_name(scomp, swidget->widget->sname); in sof_ipc3_keyword_detect_pcm_params() 1808 if (!spcm) { in sof_ipc3_keyword_detect_pcm_params() 1813 params = &spcm->params[dir]; in sof_ipc3_keyword_detect_pcm_params() 1881 struct snd_sof_pcm *spcm; in sof_ipc3_keyword_dapm_event() local 1894 if (!spcm) { in sof_ipc3_keyword_dapm_event() 1903 if (spcm->stream[stream].suspend_ignored) { in sof_ipc3_keyword_dapm_event() 1923 if (spcm->stream[stream].suspend_ignored) { in sof_ipc3_keyword_dapm_event() 2255 struct snd_sof_pcm *spcm; in sof_tear_down_left_over_pipelines() local 2263 list_for_each_entry(spcm, &sdev->pcm_list, list) { in sof_tear_down_left_over_pipelines() [all …]
|
A D | ipc4-topology.c | 2079 struct snd_sof_pcm *spcm; in sof_ipc4_tear_down_all_pipelines() local 2093 list_for_each_entry(spcm, &sdev->pcm_list, list) { in sof_ipc4_tear_down_all_pipelines() 2095 struct snd_pcm_substream *substream = spcm->stream[dir].substream; in sof_ipc4_tear_down_all_pipelines() 2097 if (!substream || !substream->runtime || spcm->stream[dir].suspend_ignored) in sof_ipc4_tear_down_all_pipelines() 2100 if (spcm->stream[dir].list) { in sof_ipc4_tear_down_all_pipelines() 2101 ret = sof_pcm_stream_free(sdev, substream, spcm, dir, true); in sof_ipc4_tear_down_all_pipelines()
|
/linux-6.3-rc2/sound/soc/intel/boards/ |
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-6.3-rc2/sound/soc/intel/avs/boards/ |
A D | hdaudio.c | 127 struct snd_pcm *spcm; in avs_card_hdmi_pcm_at() local 130 spcm = rtd->pcm ? rtd->pcm->streams[dir].pcm : NULL; in avs_card_hdmi_pcm_at() 131 if (!spcm || !strstr(spcm->id, FEDAI_NAME_PREFIX)) in avs_card_hdmi_pcm_at() 134 ret = sscanf(spcm->id, FEDAI_NAME_PREFIX "%d", &n); in avs_card_hdmi_pcm_at() 153 struct snd_pcm *spcm; in avs_card_late_probe() local 155 spcm = avs_card_hdmi_pcm_at(card, i); in avs_card_late_probe() 156 if (spcm) { in avs_card_late_probe() 157 hpcm->pcm = spcm; in avs_card_late_probe() 158 hpcm->device = spcm->device; in avs_card_late_probe() 160 __func__, i, hpcm->device, spcm); in avs_card_late_probe()
|
/linux-6.3-rc2/sound/soc/sof/intel/ |
A D | hda-pcm.c | 179 struct snd_sof_pcm *spcm; in hda_dsp_pcm_pointer() local 182 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_pointer() 183 if (!spcm) { in hda_dsp_pcm_pointer() 191 pos = spcm->stream[substream->stream].posn.host_posn; in hda_dsp_pcm_pointer() 210 struct snd_sof_pcm *spcm; in hda_dsp_pcm_open() local 214 spcm = snd_sof_find_spcm_dai(scomp, rtd); in hda_dsp_pcm_open() 215 if (!spcm) { in hda_dsp_pcm_open() 236 spcm->stream[substream->stream].d0i3_compatible) in hda_dsp_pcm_open()
|
A D | hda-dsp.c | 415 struct snd_sof_pcm *spcm; in hda_dsp_d0i3_streaming_applicable() local 419 list_for_each_entry(spcm, &sdev->pcm_list, list) { in hda_dsp_d0i3_streaming_applicable() 421 substream = spcm->stream[dir].substream; in hda_dsp_d0i3_streaming_applicable() 425 if (!spcm->stream[dir].d0i3_compatible) in hda_dsp_d0i3_streaming_applicable()
|
/linux-6.3-rc2/include/trace/events/ |
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-6.3-rc2/sound/soc/sof/mediatek/mt8186/ |
A D | mt8186.c | 483 struct snd_sof_pcm *spcm; in mt8186_pcm_pointer() local 489 spcm = snd_sof_find_spcm_dai(scomp, rtd); in mt8186_pcm_pointer() 490 if (!spcm) { in mt8186_pcm_pointer() 496 stream = &spcm->stream[substream->stream]; in mt8186_pcm_pointer() 504 pos = spcm->stream[substream->stream].posn.host_posn; in mt8186_pcm_pointer()
|
/linux-6.3-rc2/sound/soc/sof/mediatek/mt8195/ |
A D | mt8195.c | 509 struct snd_sof_pcm *spcm; in mt8195_pcm_pointer() local 515 spcm = snd_sof_find_spcm_dai(scomp, rtd); in mt8195_pcm_pointer() 516 if (!spcm) { in mt8195_pcm_pointer() 522 stream = &spcm->stream[substream->stream]; in mt8195_pcm_pointer() 530 pos = spcm->stream[substream->stream].posn.host_posn; in mt8195_pcm_pointer()
|