/kernel/linux/linux-5.10/sound/drivers/ |
D | aloop.c | 73 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, 166 static inline unsigned int byte_pos(struct loopback_pcm *dpcm, unsigned int x) in byte_pos() argument 168 if (dpcm->pcm_rate_shift == NO_PITCH) { in byte_pos() 172 HZ * (unsigned long long)dpcm->pcm_rate_shift); in byte_pos() [all …]
|
D | dummy.c | 236 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 …]
|
/kernel/linux/linux-5.10/sound/soc/ |
D | soc-pcm.c | 64 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state() 65 struct snd_soc_dpcm *dpcm; in dpcm_show_state() local 75 dpcm_state_string(fe->dpcm[stream].state)); in dpcm_show_state() 77 if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state() 78 (fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state() 89 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_show_state() 96 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_show_state() 97 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_show_state() 98 params = &dpcm->hw_params; in dpcm_show_state() 105 dpcm_state_string(be->dpcm[stream].state)); in dpcm_show_state() [all …]
|
D | soc-compress.c | 123 struct snd_soc_dpcm *dpcm; in soc_compr_open_fe() local 134 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe() 144 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe() 146 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_open_fe() 151 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_open_fe() 152 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in soc_compr_open_fe() 155 fe->dpcm[stream].runtime = NULL; in soc_compr_open_fe() 174 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in soc_compr_open_fe() 175 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe() 190 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe() [all …]
|
D | soc-core.c | 472 INIT_LIST_HEAD(&rtd->dpcm[stream].be_clients); in soc_new_pcm_runtime() 473 INIT_LIST_HEAD(&rtd->dpcm[stream].fe_clients); in soc_new_pcm_runtime()
|
/kernel/linux/linux-5.10/sound/pci/asihpi/ |
D | asihpi.c | 434 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 …]
|
/kernel/linux/linux-5.10/include/sound/ |
D | soc-dpcm.h | 107 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)
|
D | soc.h | 1131 struct snd_soc_dpcm_runtime dpcm[2]; member
|
/kernel/linux/patches/linux-5.10/yangfan_patch/ |
D | sound.patch | 56 static inline unsigned int byte_pos(struct loopback_pcm *dpcm, unsigned int x) 58 if (dpcm->pcm_rate_shift == NO_PITCH) { 63 - dpcm->last_jiffies = jiffies; 64 + dpcm->last_jiffies = cycles_to_jiffies(); 65 dpcm->pcm_rate_shift = 0; 66 dpcm->last_drift = 0; 72 - dpcm->last_jiffies = jiffies; 73 + dpcm->last_jiffies = cycles_to_jiffies(); 75 err = cable->ops->start(dpcm); 85 @@ -843,7 +863,7 @@ static void loopback_jiffies_timer_dpcm_info(struct loopback_pcm *dpcm, [all …]
|
/kernel/linux/linux-5.10/sound/soc/sof/intel/ |
D | hda-dai.c | 43 struct snd_soc_dpcm *dpcm; in hda_check_fes() local 45 for_each_dpcm_fe(rtd, dir, dpcm) { in hda_check_fes() 46 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, dir); in hda_check_fes() 273 return hda_link_hw_params(substream, &rtd->dpcm[stream].hw_params, in hda_link_pcm_prepare()
|
/kernel/linux/linux-5.10/Documentation/sound/soc/ |
D | index.rst | 19 dpcm
|
/kernel/linux/linux-5.10/sound/soc/fsl/ |
D | fsl_asrc_dma.c | 146 struct snd_soc_dpcm *dpcm; in fsl_asrc_dma_hw_params() local 153 for_each_dpcm_be(rtd, stream, dpcm) { in fsl_asrc_dma_hw_params() 154 struct snd_soc_pcm_runtime *be = dpcm->be; in fsl_asrc_dma_hw_params() 158 if (dpcm->fe != rtd) in fsl_asrc_dma_hw_params()
|
/kernel/linux/linux-5.10/sound/soc/intel/boards/ |
D | kbl_rt5663_rt5514_max98927.c | 339 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()
|
D | kbl_rt5663_max98927.c | 404 struct snd_soc_dpcm *dpcm, *rtd_dpcm = NULL; in kabylake_ssp_fixup() local 410 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in kabylake_ssp_fixup() 411 rtd_dpcm = dpcm; in kabylake_ssp_fixup() 419 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_CAPTURE, dpcm) { in kabylake_ssp_fixup() 420 rtd_dpcm = dpcm; in kabylake_ssp_fixup()
|
D | kbl_da7219_max98927.c | 285 struct snd_soc_dpcm *dpcm, *rtd_dpcm = NULL; in kabylake_ssp_fixup() local 291 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in kabylake_ssp_fixup() 292 rtd_dpcm = dpcm; in kabylake_ssp_fixup() 300 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_CAPTURE, dpcm) { in kabylake_ssp_fixup() 301 rtd_dpcm = dpcm; in kabylake_ssp_fixup()
|
/kernel/linux/linux-5.10/sound/soc/sof/ |
D | pcm.c | 642 struct snd_soc_dpcm *dpcm; in sof_pcm_dai_link_fixup() local 710 for_each_dpcm_fe(rtd, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in sof_pcm_dai_link_fixup() 711 struct snd_soc_pcm_runtime *fe = dpcm->fe; in sof_pcm_dai_link_fixup()
|
/kernel/linux/linux-5.10/sound/soc/sh/rcar/ |
D | core.c | 1418 struct snd_soc_dpcm *dpcm; in rsnd_hw_params() local 1422 for_each_dpcm_be(fe, stream, dpcm) { in rsnd_hw_params() 1423 be_params = &dpcm->hw_params; in rsnd_hw_params()
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/ |
D | 0009_linux_sound.patch | 1077 for_each_dpcm_be(rtd, stream, dpcm) { 10702 + struct snd_soc_dpcm *dpcm; 10724 + for_each_dpcm_fe(rtd, substream->stream, dpcm) { 10725 + if (dpcm->be != rtd) 10728 + mix->fe_substream[i] = snd_soc_dpcm_get_substream(dpcm->fe, substream->stream); 10729 + mix->client[i] = snd_soc_dai_get_drvdata(asoc_rtd_to_cpu(dpcm->fe, 0)); 10804 + struct snd_soc_dpcm *dpcm; 10825 + for_each_dpcm_fe(rtd, substream->stream, dpcm) { 10826 + if (dpcm->be != rtd) 10829 + mix->fe_substream[i] = snd_soc_dpcm_get_substream(dpcm->fe, substream->stream); [all …]
|