/openbmc/linux/sound/drivers/ |
H A D | aloop.c | 214 dpcm->period_size_frac = frac_pos(dpcm, dpcm->pcm_period_size); in loopback_jiffies_timer_start() 216 if (dpcm->period_size_frac <= dpcm->irq_pos) { in loopback_jiffies_timer_start() 217 dpcm->irq_pos %= dpcm->period_size_frac; in loopback_jiffies_timer_start() 220 tick = dpcm->period_size_frac - dpcm->irq_pos; in loopback_jiffies_timer_start() 477 dpcm->silent_size = dpcm->pcm_buffer_size; in loopback_prepare() 580 last_pos = byte_pos(dpcm, dpcm->irq_pos); in bytepos_delta() 587 dpcm->irq_pos %= dpcm->period_size_frac; in bytepos_delta() 597 dpcm->buf_pos %= dpcm->pcm_buffer_size; in bytepos_finish() 871 dpcm->cable->ops->pos_update(dpcm->cable); in loopback_pointer() 1193 dpcm = kzalloc(sizeof(*dpcm), GFP_KERNEL); in loopback_open() [all …]
|
H A D | dummy.c | 246 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 …]
|
/openbmc/linux/sound/soc/ |
H A D | soc-pcm.c | 1234 if (dpcm->be == be && dpcm->fe == fe) in dpcm_be_connect() 1252 if (!dpcm) in dpcm_be_connect() 1255 dpcm->be = be; in dpcm_be_connect() 1256 dpcm->fe = fe; in dpcm_be_connect() 1259 list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients); in dpcm_be_connect() 1260 list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients); in dpcm_be_connect() 1336 kfree(dpcm); in dpcm_be_disconnect() 1626 be = dpcm->be; in dpcm_be_dai_startup() 2023 be = dpcm->be; in dpcm_be_dai_hw_params() 2069 be = dpcm->be; in dpcm_be_dai_hw_params() [all …]
|
H A D | soc-compress.c | 137 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 D | soc-core.c | 537 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()
|
/openbmc/linux/sound/pci/asihpi/ |
H A D | asihpi.c | 455 dpcm->h_stream, &dpcm->format) != 0) in snd_card_asihpi_pcm_hw_params() 505 kfree(dpcm); in snd_card_asihpi_runtime_free() 605 dpcm->h_stream, in snd_card_asihpi_trigger() 719 struct snd_card_asihpi_pcm *dpcm = from_timer(dpcm, t, timer); in snd_card_asihpi_timer_function() local 820 next_jiffies = ((dpcm->period_bytes - remdata) * HZ / dpcm->bytes_per_sec); in snd_card_asihpi_timer_function() 986 dpcm = kzalloc(sizeof(*dpcm), GFP_KERNEL); in snd_card_asihpi_playback_open() 987 if (dpcm == NULL) in snd_card_asihpi_playback_open() 994 kfree(dpcm); in snd_card_asihpi_playback_open() 1161 dpcm = kzalloc(sizeof(*dpcm), GFP_KERNEL); in snd_card_asihpi_capture_open() 1162 if (dpcm == NULL) in snd_card_asihpi_capture_open() [all …]
|
/openbmc/linux/include/sound/ |
H A D | soc-dpcm.h | 108 list_for_each_entry(_dpcm, &(be)->dpcm[stream].fe_clients, list_fe) 111 list_for_each_entry(_dpcm, &(fe)->dpcm[stream].be_clients, list_be) 113 list_for_each_entry_safe(_dpcm, __dpcm, &(fe)->dpcm[stream].be_clients, list_be) 115 list_for_each_entry_continue_reverse(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
|
H A D | soc.h | 1111 struct snd_soc_dpcm_runtime dpcm[SNDRV_PCM_STREAM_LAST + 1]; member
|
/openbmc/linux/sound/soc/intel/avs/ |
H A D | pcm.c | 128 struct snd_soc_dpcm *dpcm; in avs_dai_be_hw_params() local 131 for_each_dpcm_fe(be, substream->stream, dpcm) { in avs_dai_be_hw_params() 132 fe = dpcm->fe; in avs_dai_be_hw_params() 133 fe_hw_params = &fe->dpcm[substream->stream].hw_params; in avs_dai_be_hw_params() 522 struct snd_soc_dpcm *dpcm; in avs_dai_fe_hw_params() local 538 for_each_dpcm_be(fe, substream->stream, dpcm) { in avs_dai_fe_hw_params() 539 be = dpcm->be; in avs_dai_fe_hw_params() 1440 struct snd_soc_dpcm *dpcm; in avs_component_hda_open() local 1448 for_each_dpcm_be(rtd, dir, dpcm) { in avs_component_hda_open() 1451 be = dpcm->be; in avs_component_hda_open() [all …]
|
/openbmc/linux/Documentation/sound/soc/ |
H A D | index.rst | 19 dpcm
|
/openbmc/linux/sound/soc/fsl/ |
H A D | fsl_asrc_dma.c | 149 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() 161 if (dpcm->fe != rtd) in fsl_asrc_dma_hw_params()
|
/openbmc/linux/sound/soc/intel/boards/ |
H A D | kbl_rt5663_rt5514_max98927.c | 352 struct snd_soc_dpcm *dpcm, *rtd_dpcm = NULL; in kabylake_ssp_fixup() local 358 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in kabylake_ssp_fixup() 359 rtd_dpcm = dpcm; in kabylake_ssp_fixup() 367 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_CAPTURE, dpcm) { in kabylake_ssp_fixup() 368 rtd_dpcm = dpcm; in kabylake_ssp_fixup()
|
H A D | kbl_rt5663_max98927.c | 423 struct snd_soc_dpcm *dpcm, *rtd_dpcm = NULL; in kabylake_ssp_fixup() local 429 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in kabylake_ssp_fixup() 430 rtd_dpcm = dpcm; in kabylake_ssp_fixup() 438 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_CAPTURE, dpcm) { in kabylake_ssp_fixup() 439 rtd_dpcm = dpcm; in kabylake_ssp_fixup()
|
H A D | kbl_da7219_max98927.c | 304 struct snd_soc_dpcm *dpcm, *rtd_dpcm = NULL; in kabylake_ssp_fixup() local 310 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in kabylake_ssp_fixup() 311 rtd_dpcm = dpcm; in kabylake_ssp_fixup() 319 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_CAPTURE, dpcm) { in kabylake_ssp_fixup() 320 rtd_dpcm = dpcm; in kabylake_ssp_fixup()
|
/openbmc/linux/sound/soc/apple/ |
H A D | mca.c | 551 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()
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | audio-graph-card2.yaml | 29 dpcm:
|
/openbmc/linux/sound/soc/sof/ |
H A D | ipc3-pcm.c | 219 struct snd_soc_dpcm *dpcm; in sof_ipc3_pcm_dai_link_fixup() local 281 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in sof_ipc3_pcm_dai_link_fixup() 282 struct snd_soc_pcm_runtime *fe = dpcm->fe; in sof_ipc3_pcm_dai_link_fixup()
|
/openbmc/linux/sound/soc/sof/intel/ |
H A D | hda-dai-ops.c | 31 struct snd_soc_dpcm *dpcm; in hda_check_fes() local 33 for_each_dpcm_fe(rtd, dir, dpcm) { in hda_check_fes() 34 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, dir); in hda_check_fes()
|
H A D | hda-dai.c | 322 return hda_dai_hw_params(substream, &rtd->dpcm[stream].hw_params, dai); in hda_dai_prepare() 414 return non_hda_dai_hw_params(substream, &rtd->dpcm[stream].hw_params, cpu_dai); in non_hda_dai_prepare()
|
/openbmc/linux/arch/arm64/boot/dts/renesas/ |
H A D | ulcb-audio-graph-card2-mix+split.dtsi | 35 dpcm {
|
H A D | ulcb-kf-audio-graph-card2-mix+split.dtsi | 52 dpcm {
|
/openbmc/linux/sound/soc/sh/rcar/ |
H A D | core.c | 1597 struct snd_soc_dpcm *dpcm; in rsnd_hw_params() local 1600 for_each_dpcm_be(fe, stream, dpcm) { in rsnd_hw_params() 1601 struct snd_soc_pcm_runtime *be = dpcm->be; in rsnd_hw_params() 1602 struct snd_pcm_hw_params *be_params = &be->dpcm[stream].hw_params; in rsnd_hw_params()
|
/openbmc/linux/sound/soc/generic/ |
H A D | audio-graph-card2-custom-sample.dtsi | 246 dpcm {
|
/openbmc/linux/drivers/soundwire/ |
H A D | intel_ace2x.c | 334 hw_params = &rtd->dpcm[substream->stream].hw_params; in intel_prepare()
|
H A D | intel.c | 765 hw_params = &rtd->dpcm[substream->stream].hw_params; in intel_prepare()
|