Lines Matching refs:runtime

140 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_soc_set_runtime_hwparams()  local
141 runtime->hw.info = hw->info; in snd_soc_set_runtime_hwparams()
142 runtime->hw.formats = hw->formats; in snd_soc_set_runtime_hwparams()
143 runtime->hw.period_bytes_min = hw->period_bytes_min; in snd_soc_set_runtime_hwparams()
144 runtime->hw.period_bytes_max = hw->period_bytes_max; in snd_soc_set_runtime_hwparams()
145 runtime->hw.periods_min = hw->periods_min; in snd_soc_set_runtime_hwparams()
146 runtime->hw.periods_max = hw->periods_max; in snd_soc_set_runtime_hwparams()
147 runtime->hw.buffer_bytes_max = hw->buffer_bytes_max; in snd_soc_set_runtime_hwparams()
148 runtime->hw.fifo_size = hw->fifo_size; in snd_soc_set_runtime_hwparams()
185 ret = snd_pcm_hw_constraint_minmax(substream->runtime, in soc_pcm_apply_symmetry()
201 ret = snd_pcm_hw_constraint_minmax(substream->runtime, in soc_pcm_apply_symmetry()
218 ret = snd_pcm_hw_constraint_minmax(substream->runtime, in soc_pcm_apply_symmetry()
312 ret = snd_pcm_hw_constraint_msbits(substream->runtime, 0, 0, bits); in soc_pcm_set_msb()
354 struct snd_pcm_runtime *runtime = substream->runtime; in soc_pcm_init_runtime_hw() local
355 struct snd_pcm_hardware *hw = &runtime->hw; in soc_pcm_init_runtime_hw()
405 snd_pcm_limit_hw_rates(runtime); in soc_pcm_init_runtime_hw()
421 struct snd_pcm_runtime *runtime = substream->runtime; in soc_pcm_open() local
496 runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX; in soc_pcm_open()
499 if (!runtime->hw.rates) { in soc_pcm_open()
504 if (!runtime->hw.formats) { in soc_pcm_open()
509 if (!runtime->hw.channels_min || !runtime->hw.channels_max || in soc_pcm_open()
510 runtime->hw.channels_min > runtime->hw.channels_max) { in soc_pcm_open()
536 pr_debug("ASoC: rate mask 0x%x\n", runtime->hw.rates); in soc_pcm_open()
537 pr_debug("ASoC: min ch %d max ch %d\n", runtime->hw.channels_min, in soc_pcm_open()
538 runtime->hw.channels_max); in soc_pcm_open()
539 pr_debug("ASoC: min rate %d max rate %d\n", runtime->hw.rate_min, in soc_pcm_open()
540 runtime->hw.rate_max); in soc_pcm_open()
1039 struct snd_pcm_runtime *runtime = substream->runtime; in soc_pcm_pointer() local
1067 runtime->delay = delay; in soc_pcm_pointer()
1090 be->dpcm[stream].runtime = fe->dpcm[stream].runtime; in dpcm_be_connect()
1130 be_substream->runtime = fe_substream->runtime; in dpcm_be_reparent()
1328 if (!fe->dpcm[stream].runtime && !fe->fe_compr) in dpcm_add_paths()
1395 be_substream->runtime = NULL; in dpcm_be_dai_startup_unwind()
1438 be_substream->runtime = be->dpcm[stream].runtime; in dpcm_be_dai_startup()
1480 be_substream->runtime = NULL; in dpcm_be_dai_startup()
1487 static void dpcm_init_runtime_hw(struct snd_pcm_runtime *runtime, in dpcm_init_runtime_hw() argument
1490 runtime->hw.rate_min = stream->rate_min; in dpcm_init_runtime_hw()
1491 runtime->hw.rate_max = stream->rate_max; in dpcm_init_runtime_hw()
1492 runtime->hw.channels_min = stream->channels_min; in dpcm_init_runtime_hw()
1493 runtime->hw.channels_max = stream->channels_max; in dpcm_init_runtime_hw()
1494 if (runtime->hw.formats) in dpcm_init_runtime_hw()
1495 runtime->hw.formats &= stream->formats; in dpcm_init_runtime_hw()
1497 runtime->hw.formats = stream->formats; in dpcm_init_runtime_hw()
1498 runtime->hw.rates = stream->rates; in dpcm_init_runtime_hw()
1503 struct snd_pcm_runtime *runtime = substream->runtime; in dpcm_set_fe_runtime() local
1509 dpcm_init_runtime_hw(runtime, &cpu_dai_drv->playback); in dpcm_set_fe_runtime()
1511 dpcm_init_runtime_hw(runtime, &cpu_dai_drv->capture); in dpcm_set_fe_runtime()
1540 struct snd_pcm_runtime *runtime = fe_substream->runtime; in dpcm_fe_dai_startup() local
1563 snd_pcm_limit_hw_rates(runtime); in dpcm_fe_dai_startup()
1606 be_substream->runtime = NULL; in dpcm_be_dai_shutdown()
2399 fe->dpcm[stream].runtime = fe_substream->runtime; in dpcm_fe_dai_open()
2420 fe->dpcm[stream].runtime = NULL; in dpcm_fe_dai_open()
2444 fe->dpcm[stream].runtime = NULL; in dpcm_fe_dai_close()