Home
last modified time | relevance | path

Searched refs:dpcm (Results 1 – 23 of 23) sorted by relevance

/linux-6.15/sound/drivers/
H A Daloop.c219 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 …]
H A Ddummy.c246 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-6.15/sound/soc/
H A Dsoc-pcm.c71 if (dpcm->fe == fe) in snd_soc_dpcm_check_state()
74 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_check_state()
1315 if (!dpcm) in dpcm_be_connect()
1318 dpcm->be = be; in dpcm_be_connect()
1319 dpcm->fe = fe; in dpcm_be_connect()
1322 list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients); in dpcm_be_connect()
1323 list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients); in dpcm_be_connect()
1400 kfree(dpcm); in dpcm_be_disconnect()
1678 be = dpcm->be; in dpcm_be_dai_startup()
2075 be = dpcm->be; in dpcm_be_dai_hw_params()
[all …]
H A Dsoc-compress.c137 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 …]
H A Dsoc-core.c537 INIT_LIST_HEAD(&rtd->dpcm[stream].be_clients); in soc_new_pcm_runtime()
538 INIT_LIST_HEAD(&rtd->dpcm[stream].fe_clients); in soc_new_pcm_runtime()
/linux-6.15/sound/pci/asihpi/
H A Dasihpi.c448 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-6.15/include/sound/
H A Dsoc-dpcm.h107 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)
H A Dsoc.h1140 struct snd_soc_dpcm_runtime dpcm[SNDRV_PCM_STREAM_LAST + 1]; member
/linux-6.15/sound/soc/mediatek/common/
H A Dmtk-dsp-sof-common.c78 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-6.15/sound/soc/sof/
H A Dipc3-pcm.c220 struct snd_soc_dpcm *dpcm; in sof_ipc3_pcm_dai_link_fixup() local
282 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in sof_ipc3_pcm_dai_link_fixup()
283 struct snd_soc_pcm_runtime *fe = dpcm->fe; in sof_ipc3_pcm_dai_link_fixup()
401 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in sof_ipc3_pcm_dai_link_fixup()
402 struct snd_soc_pcm_runtime *fe = dpcm->fe; in sof_ipc3_pcm_dai_link_fixup()
408 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_CAPTURE, dpcm) { in sof_ipc3_pcm_dai_link_fixup()
409 struct snd_soc_pcm_runtime *fe = dpcm->fe; in sof_ipc3_pcm_dai_link_fixup()
/linux-6.15/sound/soc/intel/avs/
H A Dpcm.c208 struct snd_soc_dpcm *dpcm; in avs_dai_be_hw_params() local
212 for_each_dpcm_fe(be, substream->stream, dpcm) { in avs_dai_be_hw_params()
213 fe = dpcm->fe; in avs_dai_be_hw_params()
214 fe_hw_params = &fe->dpcm[substream->stream].hw_params; in avs_dai_be_hw_params()
611 struct snd_soc_dpcm *dpcm; in avs_dai_fe_hw_params() local
628 for_each_dpcm_be(fe, substream->stream, dpcm) { in avs_dai_fe_hw_params()
629 be = dpcm->be; in avs_dai_fe_hw_params()
1644 struct snd_soc_dpcm *dpcm; in avs_component_hda_open() local
1652 for_each_dpcm_be(rtd, dir, dpcm) { in avs_component_hda_open()
1655 be = dpcm->be; in avs_component_hda_open()
[all …]
/linux-6.15/Documentation/sound/soc/
H A Dindex.rst19 dpcm
/linux-6.15/sound/soc/fsl/
H A Dfsl_asrc_dma.c149 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()
163 if (dpcm->fe != rtd) in fsl_asrc_dma_hw_params()
/linux-6.15/sound/soc/apple/
H A Dmca.c551 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-6.15/arch/arm64/boot/dts/renesas/
H A Dulcb-kf-audio-graph-card2-mix+split.dtsi58 dpcm: dpcm { label
H A Dulcb-audio-graph-card2-mix+split.dtsi34 dpcm {
/linux-6.15/Documentation/devicetree/bindings/sound/
H A Daudio-graph-card2.yaml34 dpcm:
/linux-6.15/sound/soc/sof/intel/
H A Dhda-dai-ops.c32 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()
H A Dhda-dai.c341 return hda_dai_hw_params(substream, &rtd->dpcm[stream].hw_params, dai); in hda_dai_prepare()
466 return non_hda_dai_hw_params(substream, &rtd->dpcm[stream].hw_params, cpu_dai); in non_hda_dai_prepare()
675 if (rtd->dpcm[hext_stream->link_substream->stream].state != in hda_dai_suspend()
/linux-6.15/sound/soc/renesas/rcar/
H A Dcore.c1592 struct snd_soc_dpcm *dpcm; in rsnd_hw_params() local
1595 for_each_dpcm_be(fe, stream, dpcm) { in rsnd_hw_params()
1596 struct snd_soc_pcm_runtime *be = dpcm->be; in rsnd_hw_params()
1597 struct snd_pcm_hw_params *be_params = &be->dpcm[stream].hw_params; in rsnd_hw_params()
/linux-6.15/sound/soc/generic/
H A Daudio-graph-card2-custom-sample2.dtsi201 dpcm {
/linux-6.15/drivers/soundwire/
H A Dintel.c808 hw_params = &rtd->dpcm[substream->stream].hw_params; in intel_prepare()
H A Dintel_ace2x.c708 hw_params = &rtd->dpcm[substream->stream].hw_params; in intel_prepare()