Lines Matching defs:runtime

235 	struct snd_pcm_runtime *runtime = substream->runtime;
236 snd_card_saa7134_pcm_t *pcm = runtime->private_data;
499 struct snd_pcm_runtime *runtime = substream->runtime;
504 snd_card_saa7134_pcm_t *pcm = runtime->private_data;
510 if (snd_pcm_format_width(runtime->format) == 8)
515 if (snd_pcm_format_signed(runtime->format))
520 if (snd_pcm_format_big_endian(runtime->format))
527 if (1 == runtime->channels)
529 if (2 == runtime->channels)
543 if (1 == runtime->channels)
545 if (2 == runtime->channels)
555 runtime->format, runtime->channels, fmt,
569 dev->dmasound.rate = runtime->rate;
593 struct snd_pcm_runtime *runtime = substream->runtime;
594 snd_card_saa7134_pcm_t *pcm = runtime->private_data;
604 return bytes_to_frames(runtime, dev->dmasound.read_offset);
644 static void snd_card_saa7134_runtime_free(struct snd_pcm_runtime *runtime)
646 snd_card_saa7134_pcm_t *pcm = runtime->private_data;
686 if (substream->runtime->dma_area) {
690 substream->runtime->dma_area = NULL;
724 /* I should be able to use runtime->dma_addr in the control
728 substream->runtime->dma_area = dev->dmasound.vaddr;
729 substream->runtime->dma_bytes = dev->dmasound.bufsize;
730 substream->runtime->dma_addr = 0;
753 if (substream->runtime->dma_area) {
757 substream->runtime->dma_area = NULL;
796 struct snd_pcm_runtime *runtime = substream->runtime;
828 runtime->private_data = pcm;
829 runtime->private_free = snd_card_saa7134_runtime_free;
830 runtime->hw = snd_card_saa7134_capture;
838 err = snd_pcm_hw_constraint_integer(runtime,
843 err = snd_pcm_hw_constraint_step(runtime, 0,
858 void *pageptr = substream->runtime->dma_area + offset;