Lines Matching defs:runtime

76 			      substream->runtime->rate);
161 struct snd_pcm_runtime *runtime = substream->runtime;
176 bits = snd_hdac_stream_format_bits(runtime->format, SNDRV_PCM_SUBFORMAT_STD, hinfo->maxbps);
178 format_val = snd_hdac_spdif_stream_format(runtime->channels, bits, runtime->rate, ctls);
182 runtime->rate, runtime->channels, runtime->format);
312 if (substream->runtime) {
321 substream->runtime->delay = delay;
334 return bytes_to_frames(substream->runtime,
377 struct snd_pcm_runtime *runtime;
386 runtime = substream->runtime;
462 NSEC_PER_SEC, runtime->rate));
464 ((HDA_MAX_CYCLE_VALUE + 1) * runtime->rate));
486 static inline bool is_link_time_supported(struct snd_pcm_runtime *runtime,
489 if (runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME)
502 struct snd_pcm_runtime *runtime = substream->runtime;
507 if ((substream->runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_ATIME) &&
510 snd_pcm_gettime(substream->runtime, system_ts);
522 } else if (is_link_time_supported(runtime, audio_tstamp_config)) {
528 switch (runtime->tstamp_type) {
589 struct snd_pcm_runtime *runtime = substream->runtime;
601 runtime->private_data = azx_dev;
603 runtime->hw = azx_pcm_hw;
605 runtime->hw.info |= SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME;
606 runtime->hw.channels_min = hinfo->channels_min;
607 runtime->hw.channels_max = hinfo->channels_max;
608 runtime->hw.formats = hinfo->formats;
609 runtime->hw.rates = hinfo->rates;
610 snd_pcm_limit_hw_rates(runtime);
611 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
614 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_TIME,
633 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
635 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
646 snd_pcm_limit_hw_rates(runtime);
648 if (snd_BUG_ON(!runtime->hw.channels_min) ||
649 snd_BUG_ON(!runtime->hw.channels_max) ||
650 snd_BUG_ON(!runtime->hw.formats) ||
651 snd_BUG_ON(!runtime->hw.rates)) {
662 runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_WALL_CLOCK; /* legacy */
663 runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_LINK_ATIME;