Home
last modified time | relevance | path

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

/linux-5.19.10/sound/drivers/
Daloop.c72 int (*open)(struct loopback_pcm *dpcm);
76 int (*start)(struct loopback_pcm *dpcm);
80 int (*stop)(struct loopback_pcm *dpcm);
82 int (*stop_sync)(struct loopback_pcm *dpcm);
84 int (*close_substream)(struct loopback_pcm *dpcm);
88 int (*close_cable)(struct loopback_pcm *dpcm);
94 void (*dpcm_info)(struct loopback_pcm *dpcm,
165 static inline unsigned int byte_pos(struct loopback_pcm *dpcm, unsigned int x) in byte_pos() argument
167 if (dpcm->pcm_rate_shift == NO_PITCH) { in byte_pos()
171 HZ * (unsigned long long)dpcm->pcm_rate_shift); in byte_pos()
[all …]
Ddummy.c235 static void dummy_systimer_rearm(struct dummy_systimer_pcm *dpcm) in dummy_systimer_rearm() argument
237 mod_timer(&dpcm->timer, jiffies + in dummy_systimer_rearm()
238 DIV_ROUND_UP(dpcm->frac_period_rest, dpcm->rate)); in dummy_systimer_rearm()
241 static void dummy_systimer_update(struct dummy_systimer_pcm *dpcm) in dummy_systimer_update() argument
245 delta = jiffies - dpcm->base_time; in dummy_systimer_update()
248 dpcm->base_time += delta; in dummy_systimer_update()
249 delta *= dpcm->rate; in dummy_systimer_update()
250 dpcm->frac_pos += delta; in dummy_systimer_update()
251 while (dpcm->frac_pos >= dpcm->frac_buffer_size) in dummy_systimer_update()
252 dpcm->frac_pos -= dpcm->frac_buffer_size; in dummy_systimer_update()
[all …]
/linux-5.19.10/sound/soc/
Dsoc-pcm.c104 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
105 struct snd_soc_dpcm *dpcm; in dpcm_show_state() local
114 dpcm_state_string(fe->dpcm[stream].state)); in dpcm_show_state()
116 if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
117 (fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
128 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_show_state()
134 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_show_state()
135 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_show_state()
136 params = &dpcm->hw_params; in dpcm_show_state()
143 dpcm_state_string(be->dpcm[stream].state)); in dpcm_show_state()
[all …]
Dsoc-compress.c140 struct snd_soc_dpcm *dpcm; in soc_compr_open_fe() local
146 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe()
154 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe()
156 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_open_fe()
161 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_open_fe()
162 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in soc_compr_open_fe()
165 fe->dpcm[stream].runtime = NULL; in soc_compr_open_fe()
184 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in soc_compr_open_fe()
185 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
202 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
[all …]
Dsoc-core.c462 INIT_LIST_HEAD(&rtd->dpcm[stream].be_clients); in soc_new_pcm_runtime()
463 INIT_LIST_HEAD(&rtd->dpcm[stream].fe_clients); in soc_new_pcm_runtime()
/linux-5.19.10/sound/pci/asihpi/
Dasihpi.c434 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_hw_params() local
446 hpi_handle_error(hpi_format_create(&dpcm->format, in snd_card_asihpi_pcm_hw_params()
451 if (hpi_instream_reset(dpcm->h_stream) != 0) in snd_card_asihpi_pcm_hw_params()
455 dpcm->h_stream, &dpcm->format) != 0) in snd_card_asihpi_pcm_hw_params()
459 dpcm->hpi_buffer_attached = 0; in snd_card_asihpi_pcm_hw_params()
461 err = hpi_stream_host_buffer_attach(dpcm->h_stream, in snd_card_asihpi_pcm_hw_params()
474 err = hpi_stream_get_info_ex(dpcm->h_stream, NULL, in snd_card_asihpi_pcm_hw_params()
475 &dpcm->hpi_buffer_attached, NULL, NULL, NULL); in snd_card_asihpi_pcm_hw_params()
484 dpcm->bytes_per_sec = bytes_per_sec; in snd_card_asihpi_pcm_hw_params()
485 dpcm->buffer_bytes = params_buffer_bytes(params); in snd_card_asihpi_pcm_hw_params()
[all …]
/linux-5.19.10/include/sound/
Dsoc-dpcm.h111 list_for_each_entry(_dpcm, &(be)->dpcm[stream].fe_clients, list_fe)
114 list_for_each_entry(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
116 list_for_each_entry_safe(_dpcm, __dpcm, &(fe)->dpcm[stream].be_clients, list_be)
118 list_for_each_entry_continue_reverse(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
Dsoc.h1052 struct snd_soc_dpcm_runtime dpcm[2]; member
/linux-5.19.10/sound/soc/fsl/
Dfsl_asrc_dma.c147 struct snd_soc_dpcm *dpcm; in fsl_asrc_dma_hw_params() local
154 for_each_dpcm_be(rtd, stream, dpcm) { in fsl_asrc_dma_hw_params()
155 struct snd_soc_pcm_runtime *be = dpcm->be; in fsl_asrc_dma_hw_params()
159 if (dpcm->fe != rtd) in fsl_asrc_dma_hw_params()
/linux-5.19.10/Documentation/sound/soc/
Dindex.rst19 dpcm
/linux-5.19.10/sound/soc/sof/intel/
Dhda-dai.c40 struct snd_soc_dpcm *dpcm; in hda_check_fes() local
42 for_each_dpcm_fe(rtd, dir, dpcm) { in hda_check_fes()
43 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, dir); in hda_check_fes()
248 return hda_link_dma_hw_params(substream, &rtd->dpcm[stream].hw_params); in hda_link_dma_prepare()
391 return hda_dai_hw_params_update(substream, &rtd->dpcm[stream].hw_params, dai); in ipc3_hda_dai_prepare()
/linux-5.19.10/sound/soc/intel/boards/
Dkbl_rt5663_rt5514_max98927.c339 struct snd_soc_dpcm *dpcm, *rtd_dpcm = NULL; in kabylake_ssp_fixup() local
345 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in kabylake_ssp_fixup()
346 rtd_dpcm = dpcm; in kabylake_ssp_fixup()
354 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_CAPTURE, dpcm) { in kabylake_ssp_fixup()
355 rtd_dpcm = dpcm; in kabylake_ssp_fixup()
Dkbl_rt5663_max98927.c410 struct snd_soc_dpcm *dpcm, *rtd_dpcm = NULL; in kabylake_ssp_fixup() local
416 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in kabylake_ssp_fixup()
417 rtd_dpcm = dpcm; in kabylake_ssp_fixup()
425 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_CAPTURE, dpcm) { in kabylake_ssp_fixup()
426 rtd_dpcm = dpcm; in kabylake_ssp_fixup()
Dkbl_da7219_max98927.c287 struct snd_soc_dpcm *dpcm, *rtd_dpcm = NULL; in kabylake_ssp_fixup() local
293 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in kabylake_ssp_fixup()
294 rtd_dpcm = dpcm; in kabylake_ssp_fixup()
302 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_CAPTURE, dpcm) { in kabylake_ssp_fixup()
303 rtd_dpcm = dpcm; in kabylake_ssp_fixup()
/linux-5.19.10/sound/soc/intel/avs/
Dpcm.c121 struct snd_soc_dpcm *dpcm; in avs_dai_be_hw_params() local
124 for_each_dpcm_fe(be, substream->stream, dpcm) { in avs_dai_be_hw_params()
125 fe = dpcm->fe; in avs_dai_be_hw_params()
126 fe_hw_params = &fe->dpcm[substream->stream].hw_params; in avs_dai_be_hw_params()
460 struct snd_soc_dpcm *dpcm; in avs_dai_fe_hw_params() local
476 for_each_dpcm_be(fe, substream->stream, dpcm) { in avs_dai_fe_hw_params()
477 be = dpcm->be; in avs_dai_fe_hw_params()
478 be_hw_params = &be->dpcm[substream->stream].hw_params; in avs_dai_fe_hw_params()
/linux-5.19.10/sound/soc/generic/
Daudio-graph-card2-custom-sample.dtsi106 &fe00 &fe01 &be0 /* dpcm: both FE / BE */
107 &fe10 &fe11 &be1 /* dpcm-m: both FE / BE */
140 dpcm {
/linux-5.19.10/sound/soc/sof/
Dipc3-pcm.c217 struct snd_soc_dpcm *dpcm; in sof_ipc3_pcm_dai_link_fixup() local
279 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in sof_ipc3_pcm_dai_link_fixup()
280 struct snd_soc_pcm_runtime *fe = dpcm->fe; in sof_ipc3_pcm_dai_link_fixup()
/linux-5.19.10/Documentation/devicetree/bindings/sound/
Daudio-graph-card2.yaml29 dpcm:
/linux-5.19.10/sound/soc/sh/rcar/
Dcore.c1517 struct snd_soc_dpcm *dpcm; in rsnd_hw_params() local
1520 for_each_dpcm_be(fe, stream, dpcm) { in rsnd_hw_params()
1521 struct snd_pcm_hw_params *be_params = &dpcm->hw_params; in rsnd_hw_params()