Lines Matching refs:runtime
228 struct snd_pcm_runtime *runtime = substream->runtime; in lola_pcm_open() local
238 runtime->hw = lola_pcm_hw; in lola_pcm_open()
239 runtime->hw.channels_max = pcm->num_streams - str->index; in lola_pcm_open()
242 runtime->hw.rate_min = chip->sample_rate; in lola_pcm_open()
243 runtime->hw.rate_max = chip->sample_rate; in lola_pcm_open()
245 runtime->hw.rate_min = chip->sample_rate_min; in lola_pcm_open()
246 runtime->hw.rate_max = chip->sample_rate_max; in lola_pcm_open()
249 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in lola_pcm_open()
251 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, in lola_pcm_open()
253 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, in lola_pcm_open()
385 switch (substream->runtime->format) { in lola_get_format_verb()
401 verb |= substream->runtime->channels; in lola_get_format_verb()
470 struct snd_pcm_runtime *runtime = substream->runtime; in lola_pcm_prepare() local
477 if (str->index + runtime->channels > pcm->num_streams) { in lola_pcm_prepare()
481 for (i = 1; i < runtime->channels; i++) { in lola_pcm_prepare()
499 err = lola_set_sample_rate(chip, runtime->rate); in lola_pcm_prepare()
502 chip->sample_rate = runtime->rate; /* sample rate gets locked */ in lola_pcm_prepare()
504 err = lola_set_stream_config(chip, str, runtime->channels); in lola_pcm_prepare()
572 return bytes_to_frames(substream->runtime, pos); in lola_pcm_pointer()