Lines Matching defs:runtime

95 static void audiopipe_free(struct snd_pcm_runtime *runtime)
97 struct audiopipe *pipe = runtime->private_data;
269 struct snd_pcm_runtime *runtime;
277 runtime = substream->runtime;
298 runtime->hw = pipe->hw;
299 runtime->private_data = pipe;
300 runtime->private_free = audiopipe_free;
304 err = snd_pcm_hw_constraint_list(runtime, 0,
311 err = snd_pcm_hw_constraint_integer(runtime,
319 err = snd_pcm_hw_constraint_step(runtime, 0,
323 err = snd_pcm_hw_constraint_step(runtime, 0,
328 err = snd_pcm_hw_rule_add(substream->runtime, 0,
369 err = snd_pcm_hw_rule_add(substream->runtime, 0,
375 err = snd_pcm_hw_rule_add(substream->runtime, 0,
400 err = snd_pcm_hw_rule_add(substream->runtime, 0,
407 err = snd_pcm_hw_rule_add(substream->runtime, 0,
439 err = snd_pcm_hw_rule_add(substream->runtime, 0,
445 err = snd_pcm_hw_rule_add(substream->runtime, 0,
478 err = snd_pcm_hw_rule_add(substream->runtime, 0,
485 err = snd_pcm_hw_rule_add(substream->runtime, 0,
545 pipe = (struct audiopipe *) substream->runtime->private_data;
675 pipe = (struct audiopipe *) substream->runtime->private_data;
694 struct snd_pcm_runtime *runtime = substream->runtime;
696 int pipe_index = ((struct audiopipe *)runtime->private_data)->index;
699 runtime->rate, runtime->format, runtime->channels);
700 format.interleave = runtime->channels;
703 switch (runtime->format) {
722 runtime->format);
773 pipe = chip->substream[i]->runtime->private_data;
796 pipe = chip->substream[i]->runtime->private_data;
805 pipe = chip->substream[i]->runtime->private_data;
822 struct snd_pcm_runtime *runtime = substream->runtime;
823 struct audiopipe *pipe = runtime->private_data;
841 pipe->position %= frames_to_bytes(runtime, runtime->buffer_size); /* wrap */
843 return bytes_to_frames(runtime, pipe->position);
1822 struct snd_pcm_runtime *runtime = substream->runtime;
1823 struct audiopipe *pipe = runtime->private_data;
1830 period_bytes = frames_to_bytes(runtime, runtime->period_size);