Lines Matching defs:runtime
90 struct snd_pcm_runtime *runtime = isight->pcm->runtime;
97 if (ptr >= runtime->buffer_size)
98 ptr -= runtime->buffer_size;
102 if (isight->period_counter >= runtime->period_size) {
103 isight->period_counter -= runtime->period_size;
111 struct snd_pcm_runtime *runtime;
117 runtime = isight->pcm->runtime;
118 if (isight->buffer_pointer + count <= runtime->buffer_size) {
119 memcpy(runtime->dma_area + isight->buffer_pointer * 4,
122 count1 = runtime->buffer_size - isight->buffer_pointer;
123 memcpy(runtime->dma_area + isight->buffer_pointer * 4,
126 memcpy(runtime->dma_area, samples, (count - count1) * 4);
140 struct snd_pcm_runtime *runtime;
147 runtime = isight->pcm->runtime;
149 if (dropped < runtime->buffer_size) {
150 if (isight->buffer_pointer + dropped <= runtime->buffer_size) {
151 memset(runtime->dma_area + isight->buffer_pointer * 4,
154 count1 = runtime->buffer_size - isight->buffer_pointer;
155 memset(runtime->dma_area + isight->buffer_pointer * 4,
157 memset(runtime->dma_area, 0, (dropped - count1) * 4);
268 substream->runtime->hw = hardware;