Lines Matching defs:runtime

75 			      substream->runtime->rate);
153 struct snd_pcm_runtime *runtime = substream->runtime;
168 format_val = snd_hdac_calc_stream_format(runtime->rate,
169 runtime->channels,
170 runtime->format,
176 runtime->rate, runtime->channels, runtime->format);
323 if (substream->runtime) {
332 substream->runtime->delay = delay;
345 return bytes_to_frames(substream->runtime,
388 struct snd_pcm_runtime *runtime;
397 runtime = substream->runtime;
473 NSEC_PER_SEC, runtime->rate));
475 ((HDA_MAX_CYCLE_VALUE + 1) * runtime->rate));
497 static inline bool is_link_time_supported(struct snd_pcm_runtime *runtime,
500 if (runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME)
513 struct snd_pcm_runtime *runtime = substream->runtime;
518 if ((substream->runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_ATIME) &&
521 snd_pcm_gettime(substream->runtime, system_ts);
534 } else if (is_link_time_supported(runtime, audio_tstamp_config)) {
540 switch (runtime->tstamp_type) {
601 struct snd_pcm_runtime *runtime = substream->runtime;
613 runtime->private_data = azx_dev;
615 runtime->hw = azx_pcm_hw;
617 runtime->hw.info |= SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME;
618 runtime->hw.channels_min = hinfo->channels_min;
619 runtime->hw.channels_max = hinfo->channels_max;
620 runtime->hw.formats = hinfo->formats;
621 runtime->hw.rates = hinfo->rates;
622 snd_pcm_limit_hw_rates(runtime);
623 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
626 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_TIME,
645 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
647 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
658 snd_pcm_limit_hw_rates(runtime);
660 if (snd_BUG_ON(!runtime->hw.channels_min) ||
661 snd_BUG_ON(!runtime->hw.channels_max) ||
662 snd_BUG_ON(!runtime->hw.formats) ||
663 snd_BUG_ON(!runtime->hw.rates)) {
674 runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_WALL_CLOCK; /* legacy */
675 runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_LINK_ATIME;