Home
last modified time | relevance | path

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

/linux-4.4.14/sound/drivers/
Daloop.c127 static inline unsigned int byte_pos(struct loopback_pcm *dpcm, unsigned int x) in byte_pos() argument
129 if (dpcm->pcm_rate_shift == NO_PITCH) { in byte_pos()
133 HZ * (unsigned long long)dpcm->pcm_rate_shift); in byte_pos()
135 return x - (x % dpcm->pcm_salign); in byte_pos()
138 static inline unsigned int frac_pos(struct loopback_pcm *dpcm, unsigned int x) in frac_pos() argument
140 if (dpcm->pcm_rate_shift == NO_PITCH) { /* no pitch */ in frac_pos()
143 x = div_u64(dpcm->pcm_rate_shift * (unsigned long long)x * HZ, in frac_pos()
149 static inline struct loopback_setup *get_setup(struct loopback_pcm *dpcm) in get_setup() argument
151 int device = dpcm->substream->pstr->pcm->device; in get_setup()
153 if (dpcm->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_setup()
[all …]
Ddummy.c250 static void dummy_systimer_rearm(struct dummy_systimer_pcm *dpcm) in dummy_systimer_rearm() argument
252 mod_timer(&dpcm->timer, jiffies + in dummy_systimer_rearm()
253 (dpcm->frac_period_rest + dpcm->rate - 1) / dpcm->rate); in dummy_systimer_rearm()
256 static void dummy_systimer_update(struct dummy_systimer_pcm *dpcm) in dummy_systimer_update() argument
260 delta = jiffies - dpcm->base_time; in dummy_systimer_update()
263 dpcm->base_time += delta; in dummy_systimer_update()
264 delta *= dpcm->rate; in dummy_systimer_update()
265 dpcm->frac_pos += delta; in dummy_systimer_update()
266 while (dpcm->frac_pos >= dpcm->frac_buffer_size) in dummy_systimer_update()
267 dpcm->frac_pos -= dpcm->frac_buffer_size; in dummy_systimer_update()
[all …]
/linux-4.4.14/sound/soc/
Dsoc-pcm.c175 struct snd_soc_dpcm *dpcm; in dpcm_dapm_stream_event() local
177 list_for_each_entry(dpcm, &fe->dpcm[dir].be_clients, list_be) { in dpcm_dapm_stream_event()
179 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_dapm_stream_event()
1123 struct snd_soc_dpcm *dpcm; in dpcm_be_connect() local
1126 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_connect()
1127 if (dpcm->be == be && dpcm->fe == fe) in dpcm_be_connect()
1131 dpcm = kzalloc(sizeof(struct snd_soc_dpcm), GFP_KERNEL); in dpcm_be_connect()
1132 if (!dpcm) in dpcm_be_connect()
1135 dpcm->be = be; in dpcm_be_connect()
1136 dpcm->fe = fe; in dpcm_be_connect()
[all …]
Dsoc-compress.c73 struct snd_soc_dpcm *dpcm; in soc_compr_open_fe() local
102 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe()
114 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_open_fe()
119 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) in soc_compr_open_fe()
120 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in soc_compr_open_fe()
123 fe->dpcm[stream].runtime = NULL; in soc_compr_open_fe()
130 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in soc_compr_open_fe()
131 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
146 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
237 struct snd_soc_dpcm *dpcm; in soc_compr_free_fe() local
[all …]
Dsoc-core.c1207 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_PLAYBACK].be_clients); in soc_post_component_init()
1208 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_CAPTURE].be_clients); in soc_post_component_init()
1209 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_PLAYBACK].fe_clients); in soc_post_component_init()
1210 INIT_LIST_HEAD(&rtd->dpcm[SNDRV_PCM_STREAM_CAPTURE].fe_clients); in soc_post_component_init()
/linux-4.4.14/sound/pci/asihpi/
Dasihpi.c455 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_hw_params() local
470 hpi_handle_error(hpi_format_create(&dpcm->format, in snd_card_asihpi_pcm_hw_params()
475 if (hpi_instream_reset(dpcm->h_stream) != 0) in snd_card_asihpi_pcm_hw_params()
479 dpcm->h_stream, &dpcm->format) != 0) in snd_card_asihpi_pcm_hw_params()
483 dpcm->hpi_buffer_attached = 0; in snd_card_asihpi_pcm_hw_params()
485 err = hpi_stream_host_buffer_attach(dpcm->h_stream, in snd_card_asihpi_pcm_hw_params()
498 err = hpi_stream_get_info_ex(dpcm->h_stream, NULL, in snd_card_asihpi_pcm_hw_params()
499 &dpcm->hpi_buffer_attached, NULL, NULL, NULL); in snd_card_asihpi_pcm_hw_params()
508 dpcm->bytes_per_sec = bytes_per_sec; in snd_card_asihpi_pcm_hw_params()
509 dpcm->buffer_bytes = params_buffer_bytes(params); in snd_card_asihpi_pcm_hw_params()
[all …]
/linux-4.4.14/sound/soc/fsl/
Dfsl_asrc_dma.c148 struct snd_soc_dpcm *dpcm; in fsl_asrc_dma_hw_params() local
156 list_for_each_entry(dpcm, &rtd->dpcm[stream].be_clients, list_be) { 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-4.4.14/sound/soc/sh/rcar/
Dsrc.c336 struct snd_soc_dpcm *dpcm; in rsnd_src_hw_params() local
339 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in rsnd_src_hw_params()
340 be_params = &dpcm->hw_params; in rsnd_src_hw_params()
/linux-4.4.14/include/sound/
Dsoc.h1181 struct snd_soc_dpcm_runtime dpcm[2]; member