Lines Matching refs:runtime
107 static void audiopipe_free(struct snd_pcm_runtime *runtime) in audiopipe_free() argument
109 struct audiopipe *pipe = runtime->private_data; in audiopipe_free()
274 struct snd_pcm_runtime *runtime; in pcm_open() local
282 runtime = substream->runtime; in pcm_open()
303 runtime->hw = pipe->hw; in pcm_open()
304 runtime->private_data = pipe; in pcm_open()
305 runtime->private_free = audiopipe_free; in pcm_open()
309 if ((err = snd_pcm_hw_constraint_list(runtime, 0, in pcm_open()
315 if ((err = snd_pcm_hw_constraint_integer(runtime, in pcm_open()
322 if ((err = snd_pcm_hw_constraint_step(runtime, 0, in pcm_open()
326 if ((err = snd_pcm_hw_constraint_step(runtime, 0, in pcm_open()
331 if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_open()
358 if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_analog_in_open()
363 if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_analog_in_open()
391 if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_analog_out_open()
397 if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_analog_out_open()
433 if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_digital_in_open()
438 if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_digital_in_open()
474 if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_digital_out_open()
480 if ((err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_digital_out_open()
535 pipe = (struct audiopipe *) substream->runtime->private_data; in init_engine()
675 pipe = (struct audiopipe *) substream->runtime->private_data; in pcm_hw_free()
695 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_prepare() local
697 int pipe_index = ((struct audiopipe *)runtime->private_data)->index; in pcm_prepare()
700 runtime->rate, runtime->format, runtime->channels); in pcm_prepare()
701 format.interleave = runtime->channels; in pcm_prepare()
704 switch (runtime->format) { in pcm_prepare()
722 runtime->format); in pcm_prepare()
739 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_trigger() local
740 struct audiopipe *pipe = runtime->private_data; in pcm_trigger()
761 pipe = chip->substream[i]->runtime->private_data; in pcm_trigger()
783 pipe = chip->substream[i]->runtime->private_data; in pcm_trigger()
792 pipe = chip->substream[i]->runtime->private_data; in pcm_trigger()
809 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_pointer() local
810 struct audiopipe *pipe = runtime->private_data; in pcm_pointer()
816 bufsize = substream->runtime->buffer_size; in pcm_pointer()
817 pos = bytes_to_frames(substream->runtime, pipe->position); in pcm_pointer()
820 pipe->position -= frames_to_bytes(substream->runtime, bufsize); in pcm_pointer()
1838 if (substream && ((struct audiopipe *)substream->runtime-> in snd_echo_interrupt()
1841 substream->runtime->period_size; in snd_echo_interrupt()