Lines Matching refs:runtime

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