| /linux/sound/drivers/ |
| A D | aloop.c | 219 dpcm->period_size_frac = frac_pos(dpcm, dpcm->pcm_period_size); in loopback_jiffies_timer_start() 221 if (dpcm->period_size_frac <= dpcm->irq_pos) { in loopback_jiffies_timer_start() 222 dpcm->irq_pos %= dpcm->period_size_frac; in loopback_jiffies_timer_start() 225 tick = dpcm->period_size_frac - dpcm->irq_pos; in loopback_jiffies_timer_start() 502 dpcm->silent_size = dpcm->pcm_buffer_size; in loopback_prepare() 624 last_pos = byte_pos(dpcm, dpcm->irq_pos); in bytepos_delta() 631 dpcm->irq_pos %= dpcm->period_size_frac; in bytepos_delta() 641 dpcm->buf_pos %= dpcm->pcm_buffer_size; in bytepos_finish() 914 dpcm->cable->ops->pos_update(dpcm->cable); in loopback_pointer() 1241 dpcm = kzalloc(sizeof(*dpcm), GFP_KERNEL); in loopback_open() [all …]
|
| A D | dummy.c | 246 DIV_ROUND_UP(dpcm->frac_period_rest, dpcm->rate)); in dummy_systimer_rearm() 259 while (dpcm->frac_pos >= dpcm->frac_buffer_size) in dummy_systimer_update() 260 dpcm->frac_pos -= dpcm->frac_buffer_size; in dummy_systimer_update() 263 dpcm->frac_period_rest += dpcm->frac_period_size; in dummy_systimer_update() 296 dpcm->frac_period_rest = dpcm->frac_period_size; in dummy_systimer_prepare() 335 dpcm = kzalloc(sizeof(*dpcm), GFP_KERNEL); in dummy_systimer_create() 336 if (!dpcm) in dummy_systimer_create() 397 dpcm->base_time = hrtimer_cb_get_time(&dpcm->timer); in dummy_hrtimer_start() 456 dpcm = kzalloc(sizeof(*dpcm), GFP_KERNEL); in dummy_hrtimer_create() 457 if (!dpcm) in dummy_hrtimer_create() [all …]
|
| /linux/sound/soc/ |
| A D | soc-pcm.c | 86 if (dpcm->fe == fe) in snd_soc_dpcm_check_state() 89 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_check_state() 1332 if (dpcm->be == be && dpcm->fe == fe) in dpcm_be_connect() 1350 if (!dpcm) in dpcm_be_connect() 1353 dpcm->be = be; in dpcm_be_connect() 1354 dpcm->fe = fe; in dpcm_be_connect() 1357 list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients); in dpcm_be_connect() 1358 list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients); in dpcm_be_connect() 1435 kfree(dpcm); in dpcm_be_disconnect() 1725 be = dpcm->be; in dpcm_be_dai_startup() [all …]
|
| A D | soc-compress.c | 137 struct snd_soc_dpcm *dpcm; in soc_compr_open_fe() local 158 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_open_fe() 159 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in soc_compr_open_fe() 180 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in soc_compr_open_fe() 207 struct snd_soc_dpcm *dpcm; in soc_compr_free_fe() local 222 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_free_fe() 223 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in soc_compr_free_fe() 227 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in soc_compr_free_fe() 305 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in soc_compr_trigger_fe() 309 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in soc_compr_trigger_fe() [all …]
|
| A D | soc-core.c | 536 INIT_LIST_HEAD(&rtd->dpcm[stream].be_clients); in soc_new_pcm_runtime() 537 INIT_LIST_HEAD(&rtd->dpcm[stream].fe_clients); in soc_new_pcm_runtime()
|
| /linux/sound/pci/asihpi/ |
| A D | asihpi.c | 448 dpcm->h_stream, &dpcm->format) != 0) in snd_card_asihpi_pcm_hw_params() 498 kfree(dpcm); in snd_card_asihpi_runtime_free() 598 dpcm->h_stream, in snd_card_asihpi_trigger() 712 struct snd_card_asihpi_pcm *dpcm = from_timer(dpcm, t, timer); in snd_card_asihpi_timer_function() local 814 next_jiffies = ((dpcm->period_bytes - remdata) * HZ / dpcm->bytes_per_sec); in snd_card_asihpi_timer_function() 978 dpcm = kzalloc(sizeof(*dpcm), GFP_KERNEL); in snd_card_asihpi_playback_open() 979 if (dpcm == NULL) in snd_card_asihpi_playback_open() 986 kfree(dpcm); in snd_card_asihpi_playback_open() 1148 dpcm = kzalloc(sizeof(*dpcm), GFP_KERNEL); in snd_card_asihpi_capture_open() 1149 if (dpcm == NULL) in snd_card_asihpi_capture_open() [all …]
|
| /linux/include/sound/ |
| A D | soc-dpcm.h | 107 list_for_each_entry(_dpcm, &(be)->dpcm[stream].fe_clients, list_fe) 110 list_for_each_entry(_dpcm, &(fe)->dpcm[stream].be_clients, list_be) 112 list_for_each_entry_safe(_dpcm, __dpcm, &(fe)->dpcm[stream].be_clients, list_be) 114 list_for_each_entry_continue_reverse(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
|
| A D | soc.h | 1174 struct snd_soc_dpcm_runtime dpcm[SNDRV_PCM_STREAM_LAST + 1]; member
|
| /linux/sound/soc/mediatek/common/ |
| A D | mtk-dsp-sof-common.c | 78 struct snd_soc_dpcm *dpcm; in mtk_sof_find_tplg_be() local 83 for_each_dpcm_fe(rtd, stream, dpcm) { in mtk_sof_find_tplg_be() 84 fe = dpcm->fe; in mtk_sof_find_tplg_be() 92 for_each_dpcm_be(fe, stream, dpcm) { in mtk_sof_find_tplg_be() 93 be = dpcm->be; in mtk_sof_find_tplg_be()
|
| /linux/sound/soc/sof/ |
| A D | ipc3-pcm.c | 219 struct snd_soc_dpcm *dpcm; in sof_ipc3_pcm_dai_link_fixup() local 281 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in sof_ipc3_pcm_dai_link_fixup() 282 struct snd_soc_pcm_runtime *fe = dpcm->fe; in sof_ipc3_pcm_dai_link_fixup() 400 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in sof_ipc3_pcm_dai_link_fixup() 401 struct snd_soc_pcm_runtime *fe = dpcm->fe; in sof_ipc3_pcm_dai_link_fixup() 407 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_CAPTURE, dpcm) { in sof_ipc3_pcm_dai_link_fixup() 408 struct snd_soc_pcm_runtime *fe = dpcm->fe; in sof_ipc3_pcm_dai_link_fixup()
|
| /linux/sound/soc/intel/avs/ |
| A D | pcm.c | 161 struct snd_soc_dpcm *dpcm; in avs_dai_be_hw_params() local 164 for_each_dpcm_fe(be, substream->stream, dpcm) { in avs_dai_be_hw_params() 165 fe = dpcm->fe; in avs_dai_be_hw_params() 166 fe_hw_params = &fe->dpcm[substream->stream].hw_params; in avs_dai_be_hw_params() 563 struct snd_soc_dpcm *dpcm; in avs_dai_fe_hw_params() local 579 for_each_dpcm_be(fe, substream->stream, dpcm) { in avs_dai_fe_hw_params() 580 be = dpcm->be; in avs_dai_fe_hw_params() 1593 struct snd_soc_dpcm *dpcm; in avs_component_hda_open() local 1601 for_each_dpcm_be(rtd, dir, dpcm) { in avs_component_hda_open() 1604 be = dpcm->be; in avs_component_hda_open() [all …]
|
| /linux/Documentation/sound/soc/ |
| A D | index.rst | 19 dpcm
|
| /linux/sound/soc/fsl/ |
| A D | fsl_asrc_dma.c | 149 struct snd_soc_dpcm *dpcm; in fsl_asrc_dma_hw_params() local 156 for_each_dpcm_be(rtd, stream, dpcm) { in fsl_asrc_dma_hw_params() 157 struct snd_soc_pcm_runtime *be = dpcm->be; in fsl_asrc_dma_hw_params() 161 if (dpcm->fe != rtd) in fsl_asrc_dma_hw_params()
|
| /linux/sound/soc/apple/ |
| A D | mca.c | 551 struct snd_soc_dpcm *dpcm; in mca_fe_get_port() local 554 for_each_dpcm_be(fe, substream->stream, dpcm) { in mca_fe_get_port() 555 be = dpcm->be; in mca_fe_get_port() 708 struct snd_soc_dpcm *dpcm; in mca_be_startup() local 712 for_each_dpcm_fe(be, substream->stream, dpcm) { in mca_be_startup() 713 if (fe && dpcm->fe != fe) { in mca_be_startup() 718 fe = dpcm->fe; in mca_be_startup()
|
| /linux/Documentation/devicetree/bindings/sound/ |
| A D | audio-graph-card2.yaml | 34 dpcm:
|
| /linux/sound/soc/sof/intel/ |
| A D | hda-dai-ops.c | 32 struct snd_soc_dpcm *dpcm; in hda_check_fes() local 34 for_each_dpcm_fe(rtd, dir, dpcm) { in hda_check_fes() 35 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, dir); in hda_check_fes()
|
| A D | hda-dai.c | 327 return hda_dai_hw_params(substream, &rtd->dpcm[stream].hw_params, dai); in hda_dai_prepare() 452 return non_hda_dai_hw_params(substream, &rtd->dpcm[stream].hw_params, cpu_dai); in non_hda_dai_prepare()
|
| /linux/arch/arm64/boot/dts/renesas/ |
| A D | ulcb-audio-graph-card2-mix+split.dtsi | 34 dpcm {
|
| A D | ulcb-kf-audio-graph-card2-mix+split.dtsi | 49 dpcm {
|
| /linux/sound/soc/sh/rcar/ |
| A D | core.c | 1580 struct snd_soc_dpcm *dpcm; in rsnd_hw_params() local 1583 for_each_dpcm_be(fe, stream, dpcm) { in rsnd_hw_params() 1584 struct snd_soc_pcm_runtime *be = dpcm->be; in rsnd_hw_params() 1585 struct snd_pcm_hw_params *be_params = &be->dpcm[stream].hw_params; in rsnd_hw_params()
|
| /linux/drivers/soundwire/ |
| A D | intel_ace2x.c | 393 hw_params = &rtd->dpcm[substream->stream].hw_params; in intel_prepare()
|
| A D | intel.c | 808 hw_params = &rtd->dpcm[substream->stream].hw_params; in intel_prepare()
|
| /linux/sound/soc/generic/ |
| A D | audio-graph-card2-custom-sample.dtsi | 484 dpcm {
|