Lines Matching defs:runtime
67 struct snd_pcm_runtime *runtime = gosnd->substream->runtime;
68 int frames = bytes_to_frames(runtime, length);
73 if (gosnd->hw_ptr >= runtime->buffer_size)
74 gosnd->hw_ptr -= runtime->buffer_size;
77 if (gosnd->w_idx + length > runtime->dma_bytes) {
78 int cpy = runtime->dma_bytes - gosnd->w_idx;
80 memcpy(runtime->dma_area + gosnd->w_idx, buf, cpy);
85 memcpy(runtime->dma_area + gosnd->w_idx, buf, length);
88 if (gosnd->avail < runtime->period_size) {
92 gosnd->avail -= runtime->period_size;
125 substream->runtime->hw = go7007_snd_capture_hw;