Lines Matching refs:runtime

248 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_card_saa7134_capture_trigger()  local
249 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_trigger()
512 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_prepare() local
517 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_prepare()
523 if (snd_pcm_format_width(runtime->format) == 8) in snd_card_saa7134_capture_prepare()
528 if (snd_pcm_format_signed(runtime->format)) in snd_card_saa7134_capture_prepare()
533 if (snd_pcm_format_big_endian(runtime->format)) in snd_card_saa7134_capture_prepare()
540 if (1 == runtime->channels) in snd_card_saa7134_capture_prepare()
542 if (2 == runtime->channels) in snd_card_saa7134_capture_prepare()
556 if (1 == runtime->channels) in snd_card_saa7134_capture_prepare()
558 if (2 == runtime->channels) in snd_card_saa7134_capture_prepare()
568 runtime->format, runtime->channels, fmt, in snd_card_saa7134_capture_prepare()
582 dev->dmasound.rate = runtime->rate; in snd_card_saa7134_capture_prepare()
606 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_pointer() local
607 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_pointer()
617 return bytes_to_frames(runtime, dev->dmasound.read_offset); in snd_card_saa7134_capture_pointer()
657 static void snd_card_saa7134_runtime_free(struct snd_pcm_runtime *runtime) in snd_card_saa7134_runtime_free() argument
659 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_runtime_free()
699 if (substream->runtime->dma_area) { in snd_card_saa7134_hw_params()
703 substream->runtime->dma_area = NULL; in snd_card_saa7134_hw_params()
741 substream->runtime->dma_area = dev->dmasound.vaddr; in snd_card_saa7134_hw_params()
742 substream->runtime->dma_bytes = dev->dmasound.bufsize; in snd_card_saa7134_hw_params()
743 substream->runtime->dma_addr = 0; in snd_card_saa7134_hw_params()
766 if (substream->runtime->dma_area) { in snd_card_saa7134_hw_free()
770 substream->runtime->dma_area = NULL; in snd_card_saa7134_hw_free()
809 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_open() local
842 runtime->private_data = pcm; in snd_card_saa7134_capture_open()
843 runtime->private_free = snd_card_saa7134_runtime_free; in snd_card_saa7134_capture_open()
844 runtime->hw = snd_card_saa7134_capture; in snd_card_saa7134_capture_open()
852 err = snd_pcm_hw_constraint_integer(runtime, in snd_card_saa7134_capture_open()
857 err = snd_pcm_hw_constraint_step(runtime, 0, in snd_card_saa7134_capture_open()
872 void *pageptr = substream->runtime->dma_area + offset; in snd_card_saa7134_page()