Home
last modified time | relevance | path

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

12

/linux/sound/drivers/
H A Daloop.c73 int (*open)(struct loopback_pcm *dpcm);
77 int (*start)(struct loopback_pcm *dpcm);
81 int (*stop)(struct loopback_pcm *dpcm);
83 int (*stop_sync)(struct loopback_pcm *dpcm);
85 int (*close_substream)(struct loopback_pcm *dpcm);
89 int (*close_cable)(struct loopback_pcm *dpcm);
95 void (*dpcm_info)(struct loopback_pcm *dpcm,
171 static inline unsigned int byte_pos(struct loopback_pcm *dpcm, unsigned int x) in byte_pos() argument
173 if (dpcm->pcm_rate_shift == NO_PITCH) { in byte_pos()
177 HZ * (unsigned long long)dpcm->pcm_rate_shift); in byte_pos()
[all …]
H A Ddummy.c244 static void dummy_systimer_rearm(struct dummy_systimer_pcm *dpcm) in dummy_systimer_rearm() argument
246 mod_timer(&dpcm->timer, jiffies + in dummy_systimer_rearm()
247 DIV_ROUND_UP(dpcm->frac_period_rest, dpcm->rate)); in dummy_systimer_rearm()
250 static void dummy_systimer_update(struct dummy_systimer_pcm *dpcm) in dummy_systimer_update() argument
254 delta = jiffies - dpcm->base_time; in dummy_systimer_update()
257 dpcm->base_time += delta; in dummy_systimer_update()
258 delta *= dpcm->rate; in dummy_systimer_update()
259 dpcm->frac_pos += delta; in dummy_systimer_update()
260 while (dpcm->frac_pos >= dpcm->frac_buffer_size) in dummy_systimer_update()
261 dpcm->frac_pos -= dpcm->frac_buffer_size; in dummy_systimer_update()
[all …]
/linux/sound/soc/
H A Dsoc-pcm.c41 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE)
51 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || in snd_soc_dpcm_can_be_update()
52 ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && in snd_soc_dpcm_can_be_update()
53 be->dpcm[stream].runtime_update)) in snd_soc_dpcm_can_be_update()
64 struct snd_soc_dpcm *dpcm; in snd_soc_dpcm_check_state() local
69 for_each_dpcm_fe(be, stream, dpcm) { in snd_soc_dpcm_check_state()
71 if (dpcm->fe == fe) in snd_soc_dpcm_check_state()
74 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_check_state()
179 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
180 struct snd_soc_dpcm *dpcm; in dpcm_show_state() local
[all …]
H A Dsoc-compress.c137 struct snd_soc_dpcm *dpcm; in soc_compr_open_fe() local
153 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_open_fe()
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()
181 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
198 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
207 struct snd_soc_dpcm *dpcm; in soc_compr_free_fe() local
215 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_free_fe()
222 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_free_fe()
[all …]
H A Dsoc-core.c40 #include <sound/soc-dpcm.h>
541 INIT_LIST_HEAD(&rtd->dpcm[stream].be_clients); in soc_new_pcm_runtime()
542 INIT_LIST_HEAD(&rtd->dpcm[stream].fe_clients); in soc_new_pcm_runtime()
/linux/sound/pci/asihpi/
H A Dasihpi.c427 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_hw_params() local
439 hpi_handle_error(hpi_format_create(&dpcm->format, in snd_card_asihpi_pcm_hw_params()
444 if (hpi_instream_reset(dpcm->h_stream) != 0) in snd_card_asihpi_pcm_hw_params()
448 dpcm->h_stream, &dpcm->format) != 0) in snd_card_asihpi_pcm_hw_params()
452 dpcm->hpi_buffer_attached = 0; in snd_card_asihpi_pcm_hw_params()
454 err = hpi_stream_host_buffer_attach(dpcm->h_stream, in snd_card_asihpi_pcm_hw_params()
467 hpi_stream_get_info_ex(dpcm->h_stream, NULL, in snd_card_asihpi_pcm_hw_params()
468 &dpcm->hpi_buffer_attached, NULL, NULL, NULL); in snd_card_asihpi_pcm_hw_params()
477 dpcm->bytes_per_sec = bytes_per_sec; in snd_card_asihpi_pcm_hw_params()
478 dpcm->buffer_bytes = params_buffer_bytes(params); in snd_card_asihpi_pcm_hw_params()
[all …]
/linux/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)
/linux/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/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/sound/soc/intel/avs/
H A Dpcm.c207 struct snd_soc_dpcm *dpcm; in avs_dai_be_hw_params() local
211 for_each_dpcm_fe(be, substream->stream, dpcm) { in avs_dai_be_hw_params()
212 fe = dpcm->fe; in avs_dai_be_hw_params()
213 fe_hw_params = &fe->dpcm[substream->stream].hw_params; in avs_dai_be_hw_params()
461 p = &be->dpcm[substream->stream].hw_params; in avs_dai_hda_be_prepare()
664 struct snd_soc_dpcm *dpcm; in avs_dai_fe_hw_params() local
681 for_each_dpcm_be(fe, substream->stream, dpcm) { in avs_dai_fe_hw_params()
682 be = dpcm->be; in avs_dai_fe_hw_params()
683 be_hw_params = &be->dpcm[substream->stream].hw_params; in avs_dai_fe_hw_params()
1095 ret = dai->driver->ops->hw_params(substream, &rtd->dpcm[substream->stream].hw_params, dai); in avs_dai_resume_hw_params()
[all …]
/linux/drivers/staging/media/ipu7/
H A Dipu7-fw-isys.c273 cfg->output_pins[i].dpcm.enable); in ipu7_fw_isys_dump_stream_cfg()
275 cfg->output_pins[i].dpcm.type); in ipu7_fw_isys_dump_stream_cfg()
277 cfg->output_pins[i].dpcm.predictor); in ipu7_fw_isys_dump_stream_cfg()
H A Dipu7-isys-video.c418 output_pin->dpcm.enable = 0; in ipu7_isys_fw_pin_cfg()
/linux/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/sound/soc/apple/
H A Dmca.c573 struct snd_soc_dpcm *dpcm; in mca_fe_get_port() local
576 for_each_dpcm_be(fe, substream->stream, dpcm) { in mca_fe_get_port()
577 be = dpcm->be; in mca_fe_get_port()
731 struct snd_soc_dpcm *dpcm; in mca_be_startup() local
735 for_each_dpcm_fe(be, substream->stream, dpcm) { in mca_be_startup()
736 if (fe && dpcm->fe != fe) { in mca_be_startup()
741 fe = dpcm->fe; in mca_be_startup()
/linux/Documentation/sound/soc/
H A Dindex.rst19 dpcm
/linux/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/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-stream.c1168 struct snd_soc_dpcm *dpcm; in hda_dsp_get_stream_llp()
1175 for_each_dpcm_be(rtd, substream->stream, dpcm) { in hda_dsp_get_stream_llp()
1176 if (dpcm->fe != rtd) in hda_dsp_get_stream_llp()
1179 be_rtd = dpcm->be; in hda_dsp_get_stream_llp()
1136 struct snd_soc_dpcm *dpcm; hda_dsp_get_stream_llp() local
H A Dhda-dai.c351 return hda_dai_hw_params(substream, &rtd->dpcm[stream].hw_params, dai);
476 return non_hda_dai_hw_params(substream, &rtd->dpcm[stream].hw_params, cpu_dai);
685 if (rtd->dpcm[hext_stream->link_substream->stream].state != in hda_dai_suspend()
/linux/drivers/staging/media/ipu7/abi/
H A Dipu7_fw_isys_abi.h266 struct ipu7_insys_output_dpcm dpcm; member
/linux/sound/soc/renesas/rcar/
H A Dcore.c1576 struct snd_soc_dpcm *dpcm; in rsnd_hw_params() local
1579 for_each_dpcm_be(fe, stream, dpcm) { in rsnd_hw_params()
1580 struct snd_soc_pcm_runtime *be = dpcm->be; in rsnd_hw_params()
1581 struct snd_pcm_hw_params *be_params = &be->dpcm[stream].hw_params; in rsnd_hw_params()
/linux/sound/soc/generic/
H A Daudio-graph-card2-custom-sample2.dtsi201 dpcm {
/linux/drivers/soundwire/
H A Dintel.c807 hw_params = &rtd->dpcm[substream->stream].hw_params; in intel_prepare()
H A Dintel_ace2x.c782 hw_params = &rtd->dpcm[substream->stream].hw_params; in intel_prepare()

12