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);
306 if (substream->runtime) {
315 substream->runtime->delay = delay;
328 return bytes_to_frames(substream->runtime,
371 struct snd_pcm_runtime *runtime;
380 runtime = substream->runtime;
456 NSEC_PER_SEC, runtime->rate));
458 ((HDA_MAX_CYCLE_VALUE + 1) * runtime->rate));
480 static inline bool is_link_time_supported(struct snd_pcm_runtime *runtime,
483 if (runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME)
496 struct snd_pcm_runtime *runtime = substream->runtime;
501 if ((substream->runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_ATIME) &&
504 snd_pcm_gettime(substream->runtime, system_ts);
516 } else if (is_link_time_supported(runtime, audio_tstamp_config)) {
522 switch (runtime->tstamp_type) {
583 struct snd_pcm_runtime *runtime = substream->runtime;
595 runtime->private_data = azx_dev;
597 runtime->hw = azx_pcm_hw;
599 runtime->hw.info |= SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME;
600 runtime->hw.channels_min = hinfo->channels_min;
601 runtime->hw.channels_max = hinfo->channels_max;
602 runtime->hw.formats = hinfo->formats;
603 runtime->hw.rates = hinfo->rates;
604 snd_pcm_limit_hw_rates(runtime);
605 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
608 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_TIME,
627 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
629 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
640 snd_pcm_limit_hw_rates(runtime);
642 if (snd_BUG_ON(!runtime->hw.channels_min) ||
643 snd_BUG_ON(!runtime->hw.channels_max) ||
644 snd_BUG_ON(!runtime->hw.formats) ||
645 snd_BUG_ON(!runtime->hw.rates)) {
656 runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_WALL_CLOCK; /* legacy */
657 runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_LINK_ATIME;