Lines Matching refs:runtime

256 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_card_saa7134_capture_trigger()  local
257 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_trigger()
520 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_prepare() local
525 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_prepare()
531 if (snd_pcm_format_width(runtime->format) == 8) in snd_card_saa7134_capture_prepare()
536 if (snd_pcm_format_signed(runtime->format)) in snd_card_saa7134_capture_prepare()
541 if (snd_pcm_format_big_endian(runtime->format)) in snd_card_saa7134_capture_prepare()
548 if (1 == runtime->channels) in snd_card_saa7134_capture_prepare()
550 if (2 == runtime->channels) in snd_card_saa7134_capture_prepare()
564 if (1 == runtime->channels) in snd_card_saa7134_capture_prepare()
566 if (2 == runtime->channels) in snd_card_saa7134_capture_prepare()
576 runtime->format, runtime->channels, fmt, in snd_card_saa7134_capture_prepare()
590 dev->dmasound.rate = runtime->rate; in snd_card_saa7134_capture_prepare()
614 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_pointer() local
615 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_pointer()
625 return bytes_to_frames(runtime, dev->dmasound.read_offset); in snd_card_saa7134_capture_pointer()
665 static void snd_card_saa7134_runtime_free(struct snd_pcm_runtime *runtime) in snd_card_saa7134_runtime_free() argument
667 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_runtime_free()
707 if (substream->runtime->dma_area) { in snd_card_saa7134_hw_params()
711 substream->runtime->dma_area = NULL; in snd_card_saa7134_hw_params()
749 substream->runtime->dma_area = dev->dmasound.vaddr; in snd_card_saa7134_hw_params()
750 substream->runtime->dma_bytes = dev->dmasound.bufsize; in snd_card_saa7134_hw_params()
751 substream->runtime->dma_addr = 0; in snd_card_saa7134_hw_params()
774 if (substream->runtime->dma_area) { in snd_card_saa7134_hw_free()
778 substream->runtime->dma_area = NULL; in snd_card_saa7134_hw_free()
817 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_open() local
850 runtime->private_data = pcm; in snd_card_saa7134_capture_open()
851 runtime->private_free = snd_card_saa7134_runtime_free; in snd_card_saa7134_capture_open()
852 runtime->hw = snd_card_saa7134_capture; in snd_card_saa7134_capture_open()
860 err = snd_pcm_hw_constraint_integer(runtime, in snd_card_saa7134_capture_open()
865 err = snd_pcm_hw_constraint_step(runtime, 0, in snd_card_saa7134_capture_open()
880 void *pageptr = substream->runtime->dma_area + offset; in snd_card_saa7134_page()