Home
last modified time | relevance | path

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

/Linux-v5.4/sound/drivers/
Daloop.c114 static inline unsigned int byte_pos(struct loopback_pcm *dpcm, unsigned int x) in byte_pos() argument
116 if (dpcm->pcm_rate_shift == NO_PITCH) { in byte_pos()
120 HZ * (unsigned long long)dpcm->pcm_rate_shift); in byte_pos()
122 return x - (x % dpcm->pcm_salign); in byte_pos()
125 static inline unsigned int frac_pos(struct loopback_pcm *dpcm, unsigned int x) in frac_pos() argument
127 if (dpcm->pcm_rate_shift == NO_PITCH) { /* no pitch */ in frac_pos()
130 x = div_u64(dpcm->pcm_rate_shift * (unsigned long long)x * HZ, in frac_pos()
136 static inline struct loopback_setup *get_setup(struct loopback_pcm *dpcm) in get_setup() argument
138 int device = dpcm->substream->pstr->pcm->device; in get_setup()
140 if (dpcm->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_setup()
[all …]
Ddummy.c236 static void dummy_systimer_rearm(struct dummy_systimer_pcm *dpcm) in dummy_systimer_rearm() argument
238 mod_timer(&dpcm->timer, jiffies + in dummy_systimer_rearm()
239 (dpcm->frac_period_rest + dpcm->rate - 1) / dpcm->rate); in dummy_systimer_rearm()
242 static void dummy_systimer_update(struct dummy_systimer_pcm *dpcm) in dummy_systimer_update() argument
246 delta = jiffies - dpcm->base_time; in dummy_systimer_update()
249 dpcm->base_time += delta; in dummy_systimer_update()
250 delta *= dpcm->rate; in dummy_systimer_update()
251 dpcm->frac_pos += delta; in dummy_systimer_update()
252 while (dpcm->frac_pos >= dpcm->frac_buffer_size) in dummy_systimer_update()
253 dpcm->frac_pos -= dpcm->frac_buffer_size; in dummy_systimer_update()
[all …]
/Linux-v5.4/sound/soc/
Dsoc-pcm.c157 struct snd_soc_dpcm *dpcm; in dpcm_dapm_stream_event() local
159 for_each_dpcm_be(fe, dir, dpcm) { in dpcm_dapm_stream_event()
161 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_dapm_stream_event()
167 (be->dpcm[dir].users >= 1)) in dpcm_dapm_stream_event()
1147 struct snd_soc_dpcm *dpcm; in dpcm_be_connect() local
1152 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_connect()
1153 if (dpcm->be == be && dpcm->fe == fe) in dpcm_be_connect()
1157 dpcm = kzalloc(sizeof(struct snd_soc_dpcm), GFP_KERNEL); in dpcm_be_connect()
1158 if (!dpcm) in dpcm_be_connect()
1161 dpcm->be = be; in dpcm_be_connect()
[all …]
Dsoc-compress.c132 struct snd_soc_dpcm *dpcm; in soc_compr_open_fe() local
143 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe()
153 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe()
155 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_open_fe()
160 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_open_fe()
161 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in soc_compr_open_fe()
164 fe->dpcm[stream].runtime = NULL; in soc_compr_open_fe()
194 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in soc_compr_open_fe()
195 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
211 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
[all …]
Dsoc-core.c1447 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_PLAYBACK].be_clients); in soc_rtd_init()
1448 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_CAPTURE].be_clients); in soc_rtd_init()
1449 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_PLAYBACK].fe_clients); in soc_rtd_init()
1450 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_CAPTURE].fe_clients); in soc_rtd_init()
/Linux-v5.4/include/sound/
Dsoc-dpcm.h106 #define for_each_dpcm_fe(be, stream, dpcm) \ argument
107 list_for_each_entry(dpcm, &(be)->dpcm[stream].fe_clients, list_fe)
109 #define for_each_dpcm_be(fe, stream, dpcm) \ argument
110 list_for_each_entry(dpcm, &(fe)->dpcm[stream].be_clients, list_be)
111 #define for_each_dpcm_be_safe(fe, stream, dpcm, _dpcm) \ argument
112 list_for_each_entry_safe(dpcm, _dpcm, &(fe)->dpcm[stream].be_clients, list_be)
113 #define for_each_dpcm_be_rollback(fe, stream, dpcm) \ argument
114 list_for_each_entry_continue_reverse(dpcm, &(fe)->dpcm[stream].be_clients, list_be)
Dsoc.h1128 struct snd_soc_dpcm_runtime dpcm[2]; member
/Linux-v5.4/sound/pci/asihpi/
Dasihpi.c444 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_hw_params() local
459 hpi_handle_error(hpi_format_create(&dpcm->format, in snd_card_asihpi_pcm_hw_params()
464 if (hpi_instream_reset(dpcm->h_stream) != 0) in snd_card_asihpi_pcm_hw_params()
468 dpcm->h_stream, &dpcm->format) != 0) in snd_card_asihpi_pcm_hw_params()
472 dpcm->hpi_buffer_attached = 0; in snd_card_asihpi_pcm_hw_params()
474 err = hpi_stream_host_buffer_attach(dpcm->h_stream, in snd_card_asihpi_pcm_hw_params()
487 err = hpi_stream_get_info_ex(dpcm->h_stream, NULL, in snd_card_asihpi_pcm_hw_params()
488 &dpcm->hpi_buffer_attached, NULL, NULL, NULL); in snd_card_asihpi_pcm_hw_params()
497 dpcm->bytes_per_sec = bytes_per_sec; in snd_card_asihpi_pcm_hw_params()
498 dpcm->buffer_bytes = params_buffer_bytes(params); in snd_card_asihpi_pcm_hw_params()
[all …]
/Linux-v5.4/sound/soc/sof/intel/
Dhda-dai.c42 struct snd_soc_dpcm *dpcm; in hda_check_fes() local
44 for_each_dpcm_fe(rtd, dir, dpcm) { in hda_check_fes()
45 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, dir); in hda_check_fes()
277 return hda_link_hw_params(substream, &rtd->dpcm[stream].hw_params, in hda_link_pcm_prepare()
/Linux-v5.4/sound/soc/fsl/
Dfsl_asrc_dma.c146 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-v5.4/Documentation/sound/soc/
Dindex.rst19 dpcm
/Linux-v5.4/sound/soc/intel/boards/
Dkbl_rt5663_rt5514_max98927.c274 struct snd_soc_dpcm *dpcm = container_of( in kabylake_ssp_fixup() local
276 struct snd_soc_dai_link *fe_dai_link = dpcm->fe->dai_link; in kabylake_ssp_fixup()
277 struct snd_soc_dai_link *be_dai_link = dpcm->be->dai_link; in kabylake_ssp_fixup()
Dkbl_rt5663_max98927.c404 struct snd_soc_dpcm *dpcm = container_of( in kabylake_ssp_fixup() local
406 struct snd_soc_dai_link *fe_dai_link = dpcm->fe->dai_link; in kabylake_ssp_fixup()
407 struct snd_soc_dai_link *be_dai_link = dpcm->be->dai_link; in kabylake_ssp_fixup()
Dkbl_da7219_max98927.c285 struct snd_soc_dpcm *dpcm = container_of( in kabylake_ssp_fixup() local
287 struct snd_soc_dai_link *fe_dai_link = dpcm->fe->dai_link; in kabylake_ssp_fixup()
288 struct snd_soc_dai_link *be_dai_link = dpcm->be->dai_link; in kabylake_ssp_fixup()
/Linux-v5.4/sound/soc/sh/rcar/
Dcore.c1400 struct snd_soc_dpcm *dpcm; in rsnd_hw_params() local
1404 for_each_dpcm_be(fe, stream, dpcm) { in rsnd_hw_params()
1405 be_params = &dpcm->hw_params; in rsnd_hw_params()
/Linux-v5.4/include/
DKbuild983 header-test- += sound/soc-dpcm.h