Lines Matching refs:runtime
79 substream->runtime->rate); in azx_adjust_codec_delay()
161 struct snd_pcm_runtime *runtime = substream->runtime; in azx_pcm_prepare() local
176 format_val = snd_hdac_calc_stream_format(runtime->rate, in azx_pcm_prepare()
177 runtime->channels, in azx_pcm_prepare()
178 runtime->format, in azx_pcm_prepare()
184 runtime->rate, runtime->channels, runtime->format); in azx_pcm_prepare()
314 if (substream->runtime) { in azx_get_position()
323 substream->runtime->delay = delay; in azx_get_position()
336 return bytes_to_frames(substream->runtime, in azx_pcm_pointer()
348 if ((substream->runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_ATIME) && in azx_get_time_info()
351 snd_pcm_gettime(substream->runtime, system_ts); in azx_get_time_info()
402 struct snd_pcm_runtime *runtime = substream->runtime; in azx_pcm_open() local
414 runtime->private_data = azx_dev; in azx_pcm_open()
415 runtime->hw = azx_pcm_hw; in azx_pcm_open()
416 runtime->hw.channels_min = hinfo->channels_min; in azx_pcm_open()
417 runtime->hw.channels_max = hinfo->channels_max; in azx_pcm_open()
418 runtime->hw.formats = hinfo->formats; in azx_pcm_open()
419 runtime->hw.rates = hinfo->rates; in azx_pcm_open()
420 snd_pcm_limit_hw_rates(runtime); in azx_pcm_open()
421 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in azx_pcm_open()
424 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_TIME, in azx_pcm_open()
443 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, in azx_pcm_open()
445 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, in azx_pcm_open()
456 snd_pcm_limit_hw_rates(runtime); in azx_pcm_open()
458 if (snd_BUG_ON(!runtime->hw.channels_min) || in azx_pcm_open()
459 snd_BUG_ON(!runtime->hw.channels_max) || in azx_pcm_open()
460 snd_BUG_ON(!runtime->hw.formats) || in azx_pcm_open()
461 snd_BUG_ON(!runtime->hw.rates)) { in azx_pcm_open()
472 runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_WALL_CLOCK; /* legacy */ in azx_pcm_open()
473 runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_LINK_ATIME; in azx_pcm_open()