Lines Matching refs:runtime

158 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_soc_set_runtime_hwparams()  local
159 runtime->hw.info = hw->info; in snd_soc_set_runtime_hwparams()
160 runtime->hw.formats = hw->formats; in snd_soc_set_runtime_hwparams()
161 runtime->hw.period_bytes_min = hw->period_bytes_min; in snd_soc_set_runtime_hwparams()
162 runtime->hw.period_bytes_max = hw->period_bytes_max; in snd_soc_set_runtime_hwparams()
163 runtime->hw.periods_min = hw->periods_min; in snd_soc_set_runtime_hwparams()
164 runtime->hw.periods_max = hw->periods_max; in snd_soc_set_runtime_hwparams()
165 runtime->hw.buffer_bytes_max = hw->buffer_bytes_max; in snd_soc_set_runtime_hwparams()
166 runtime->hw.fifo_size = hw->fifo_size; in snd_soc_set_runtime_hwparams()
203 ret = snd_pcm_hw_constraint_single(substream->runtime, in soc_pcm_apply_symmetry()
219 ret = snd_pcm_hw_constraint_single(substream->runtime, in soc_pcm_apply_symmetry()
235 ret = snd_pcm_hw_constraint_single(substream->runtime, in soc_pcm_apply_symmetry()
328 ret = snd_pcm_hw_constraint_msbits(substream->runtime, 0, 0, bits); in soc_pcm_set_msb()
370 struct snd_pcm_runtime *runtime = substream->runtime; in soc_pcm_init_runtime_hw() local
371 struct snd_pcm_hardware *hw = &runtime->hw; in soc_pcm_init_runtime_hw()
435 snd_pcm_limit_hw_rates(runtime); in soc_pcm_init_runtime_hw()
451 struct snd_pcm_runtime *runtime = substream->runtime; in soc_pcm_open() local
526 runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX; in soc_pcm_open()
529 if (!runtime->hw.rates) { in soc_pcm_open()
534 if (!runtime->hw.formats) { in soc_pcm_open()
539 if (!runtime->hw.channels_min || !runtime->hw.channels_max || in soc_pcm_open()
540 runtime->hw.channels_min > runtime->hw.channels_max) { in soc_pcm_open()
566 pr_debug("ASoC: rate mask 0x%x\n", runtime->hw.rates); in soc_pcm_open()
567 pr_debug("ASoC: min ch %d max ch %d\n", runtime->hw.channels_min, in soc_pcm_open()
568 runtime->hw.channels_max); in soc_pcm_open()
569 pr_debug("ASoC: min rate %d max rate %d\n", runtime->hw.rate_min, in soc_pcm_open()
570 runtime->hw.rate_max); in soc_pcm_open()
1086 struct snd_pcm_runtime *runtime = substream->runtime; in soc_pcm_pointer() local
1114 runtime->delay = delay; in soc_pcm_pointer()
1137 be->dpcm[stream].runtime = fe->dpcm[stream].runtime; in dpcm_be_connect()
1177 be_substream->runtime = fe_substream->runtime; in dpcm_be_reparent()
1373 if (!fe->dpcm[stream].runtime && !fe->fe_compr) in dpcm_add_paths()
1440 be_substream->runtime = NULL; in dpcm_be_dai_startup_unwind()
1483 be_substream->runtime = be->dpcm[stream].runtime; in dpcm_be_dai_startup()
1525 be_substream->runtime = NULL; in dpcm_be_dai_startup()
1532 static void dpcm_init_runtime_hw(struct snd_pcm_runtime *runtime, in dpcm_init_runtime_hw() argument
1536 runtime->hw.rate_min = stream->rate_min; in dpcm_init_runtime_hw()
1537 runtime->hw.rate_max = stream->rate_max; in dpcm_init_runtime_hw()
1538 runtime->hw.channels_min = stream->channels_min; in dpcm_init_runtime_hw()
1539 runtime->hw.channels_max = stream->channels_max; in dpcm_init_runtime_hw()
1540 if (runtime->hw.formats) in dpcm_init_runtime_hw()
1541 runtime->hw.formats &= formats & stream->formats; in dpcm_init_runtime_hw()
1543 runtime->hw.formats = formats & stream->formats; in dpcm_init_runtime_hw()
1544 runtime->hw.rates = stream->rates; in dpcm_init_runtime_hw()
1584 struct snd_pcm_runtime *runtime = substream->runtime; in dpcm_set_fe_runtime() local
1591 dpcm_init_runtime_hw(runtime, &cpu_dai_drv->playback, format); in dpcm_set_fe_runtime()
1593 dpcm_init_runtime_hw(runtime, &cpu_dai_drv->capture, format); in dpcm_set_fe_runtime()
1622 struct snd_pcm_runtime *runtime = fe_substream->runtime; in dpcm_fe_dai_startup() local
1645 snd_pcm_limit_hw_rates(runtime); in dpcm_fe_dai_startup()
1688 be_substream->runtime = NULL; in dpcm_be_dai_shutdown()
2481 fe->dpcm[stream].runtime = fe_substream->runtime; in dpcm_fe_dai_open()
2502 fe->dpcm[stream].runtime = NULL; in dpcm_fe_dai_open()
2526 fe->dpcm[stream].runtime = NULL; in dpcm_fe_dai_close()