Lines Matching defs:runtime

208  * PCM runtime components
209 * @rtd: ASoC PCM runtime that is activated
214 * attached to a PCM runtime.
234 * @rtd: The ASoC PCM runtime that should be checked.
237 * specific PCM runtime. Returns true if the delay is 0, if it the DAI link has
257 * snd_soc_set_runtime_hwparams - set the runtime hardware parameters
261 * Sets the substream runtime hardware parameters.
266 struct snd_pcm_runtime *runtime = substream->runtime;
267 runtime->hw.info = hw->info;
268 runtime->hw.formats = hw->formats;
269 runtime->hw.period_bytes_min = hw->period_bytes_min;
270 runtime->hw.period_bytes_max = hw->period_bytes_max;
271 runtime->hw.periods_min = hw->periods_min;
272 runtime->hw.periods_max = hw->periods_max;
273 runtime->hw.buffer_bytes_max = hw->buffer_bytes_max;
274 runtime->hw.fifo_size = hw->fifo_size;
315 ret = snd_pcm_hw_constraint_single(substream->runtime,
331 ret = snd_pcm_hw_constraint_single(substream->runtime,
347 ret = snd_pcm_hw_constraint_single(substream->runtime,
452 ret = snd_pcm_hw_constraint_msbits(substream->runtime, 0, 0, bits);
494 * @rtd: ASoC PCM runtime
594 struct snd_pcm_hardware *hw = &substream->runtime->hw;
690 * Called by ALSA when a PCM substream is opened, the runtime->hw record is
697 struct snd_pcm_runtime *runtime = substream->runtime;
742 runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX;
745 if (!runtime->hw.rates) {
750 if (!runtime->hw.formats) {
755 if (!runtime->hw.channels_min || !runtime->hw.channels_max ||
756 runtime->hw.channels_min > runtime->hw.channels_max) {
775 pr_debug("ASoC: rate mask 0x%x\n", runtime->hw.rates);
776 pr_debug("ASoC: min ch %d max ch %d\n", runtime->hw.channels_min,
777 runtime->hw.channels_max);
778 pr_debug("ASoC: min rate %d max rate %d\n", runtime->hw.rate_min,
779 runtime->hw.rate_max);
805 * it can refer to the runtime info.
1071 * the runtime->delay will be updated accordingly.
1078 struct snd_pcm_runtime *runtime = substream->runtime;
1086 runtime->delay = 0;
1091 delay = runtime->delay;
1105 runtime->delay = delay;
1129 be->dpcm[stream].runtime = fe->dpcm[stream].runtime;
1170 be_substream->runtime = fe_substream->runtime;
1376 if (!fe->dpcm[stream].runtime && !fe->fe_compr)
1446 be_substream->runtime = NULL;
1489 be_substream->runtime = be->dpcm[stream].runtime;
1531 be_substream->runtime = NULL;
1538 static void dpcm_init_runtime_hw(struct snd_pcm_runtime *runtime,
1541 runtime->hw.rate_min = stream->rate_min;
1542 runtime->hw.rate_max = min_not_zero(stream->rate_max, UINT_MAX);
1543 runtime->hw.channels_min = stream->channels_min;
1544 runtime->hw.channels_max = stream->channels_max;
1545 if (runtime->hw.formats)
1546 runtime->hw.formats &= stream->formats;
1548 runtime->hw.formats = stream->formats;
1549 runtime->hw.rates = stream->rates;
1684 struct snd_pcm_runtime *runtime = substream->runtime;
1697 dpcm_init_runtime_hw(runtime,
1702 dpcm_runtime_merge_format(substream, &runtime->hw.formats);
1703 dpcm_runtime_merge_chan(substream, &runtime->hw.channels_min,
1704 &runtime->hw.channels_max);
1705 dpcm_runtime_merge_rate(substream, &runtime->hw.rates,
1706 &runtime->hw.rate_min, &runtime->hw.rate_max);
1743 fe_substream->runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX;
1772 be_substream->runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX;
1790 struct snd_pcm_runtime *runtime = fe_substream->runtime;
1813 snd_pcm_limit_hw_rates(runtime);
1861 be_substream->runtime = NULL;
2408 dev_dbg(fe->dev, "ASoC: runtime %s close on FE %s\n",
2451 dev_dbg(fe->dev, "ASoC: runtime %s open on FE %s\n",
2551 dev_dbg(fe->dev, "ASoC: DPCM %s runtime update for FE %s\n",
2638 fe->dpcm[stream].runtime = NULL;
2663 fe->dpcm[stream].runtime = fe_substream->runtime;