Lines Matching defs:runtime
358 struct snd_pcm_runtime *runtime = substream->runtime;
368 runtime->hw = stream->pcm_hw;
369 runtime->hw.info &= ~(SNDRV_PCM_INFO_MMAP |
376 runtime->hw.info |= SNDRV_PCM_INFO_INTERLEAVED;
388 ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FORMAT,
396 ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
404 ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
412 ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
420 ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
517 struct snd_pcm_runtime *runtime = substream->runtime;
521 ret = to_sndif_format(runtime->format);
525 runtime->format);
533 runtime->channels,
534 runtime->rate,
582 cur_frame = bytes_to_frames(substream->runtime, pos_bytes);
588 new_hw_ptr = (new_hw_ptr + delta) % substream->runtime->buffer_size;
592 if (stream->out_frames > substream->runtime->period_size) {
593 stream->out_frames %= substream->runtime->period_size;