Lines Matching refs:runtime

155 	struct snd_pcm_runtime *runtime = substream->runtime;
163 runtime->hw = snd_p16v_playback_hw;
173 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
177 runtime->sync.id32[0] = substream->pcm->card->number;
178 runtime->sync.id32[1] = 'P';
179 runtime->sync.id32[2] = 16;
180 runtime->sync.id32[3] = 'V';
188 struct snd_pcm_runtime *runtime = substream->runtime;
196 runtime->hw = snd_p16v_capture_hw;
198 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
233 struct snd_pcm_runtime *runtime = substream->runtime;
236 u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size);
245 channel, runtime->rate, runtime->format, runtime->channels,
246 runtime->buffer_size, runtime->period_size,
247 runtime->periods, frames_to_bytes(runtime, 1));
250 runtime->dma_addr, runtime->dma_area, table_base);
258 switch (runtime->rate) {
278 for(i = 0; i < runtime->periods; i++) {
279 table_base[i*2]=runtime->dma_addr+(i*period_size_bytes);
284 snd_emu10k1_ptr20_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19);
286 snd_emu10k1_ptr20_write(emu, PLAYBACK_DMA_ADDR, channel, runtime->dma_addr);
287 //snd_emu10k1_ptr20_write(emu, PLAYBACK_PERIOD_SIZE, channel, frames_to_bytes(runtime, runtime->period_size)<<16); // buffer size in bytes
300 struct snd_pcm_runtime *runtime = substream->runtime;
307 channel, runtime->rate, runtime->format, runtime->channels,
308 runtime->buffer_size, runtime->period_size,
309 frames_to_bytes(runtime, 1));
311 switch (runtime->rate) {
328 snd_emu10k1_ptr20_write(emu, CAPTURE_DMA_ADDR, channel, runtime->dma_addr);
329 snd_emu10k1_ptr20_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffer_size) << 16); // buffer size in bytes
370 struct snd_pcm_runtime *runtime = substream->runtime;
372 if (runtime && runtime->private_data) {
383 struct snd_pcm_runtime *runtime = substream->runtime;
386 if (runtime && runtime->private_data) {
400 struct snd_pcm_runtime *runtime;
421 runtime = s->runtime;
424 runtime->private_data = (void *)(ptrdiff_t)running;
452 struct snd_pcm_runtime *runtime = substream->runtime;
461 runtime->private_data = (void *)1;
467 runtime->private_data = NULL;
481 struct snd_pcm_runtime *runtime = substream->runtime;
485 if (!runtime->private_data)
492 ptr2 = bytes_to_frames(runtime, ptr1);
493 ptr2+= (ptr4 >> 3) * runtime->period_size;
495 if (ptr >= runtime->buffer_size)
496 ptr -= runtime->buffer_size;
506 struct snd_pcm_runtime *runtime = substream->runtime;
510 if (!runtime->private_data)
514 ptr2 = bytes_to_frames(runtime, ptr1);
516 if (ptr >= runtime->buffer_size) {
517 ptr -= runtime->buffer_size;
523 ptr1, ptr2, ptr, (int)runtime->buffer_size,
524 (int)runtime->period_size, (int)runtime->frame_bits,
525 (int)runtime->rate);