Lines Matching defs:runtime
215 struct snd_pcm_runtime *runtime = substream->runtime;
225 runtime->hw = lola_pcm_hw;
226 runtime->hw.channels_max = pcm->num_streams - str->index;
229 runtime->hw.rate_min = chip->sample_rate;
230 runtime->hw.rate_max = chip->sample_rate;
232 runtime->hw.rate_min = chip->sample_rate_min;
233 runtime->hw.rate_max = chip->sample_rate_max;
236 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
238 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
240 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
371 switch (substream->runtime->format) {
387 verb |= substream->runtime->channels;
456 struct snd_pcm_runtime *runtime = substream->runtime;
463 if (str->index + runtime->channels > pcm->num_streams) {
467 for (i = 1; i < runtime->channels; i++) {
485 err = lola_set_sample_rate(chip, runtime->rate);
488 chip->sample_rate = runtime->rate; /* sample rate gets locked */
490 err = lola_set_stream_config(chip, str, runtime->channels);
558 return bytes_to_frames(substream->runtime, pos);