Lines Matching refs:runtime

670 	struct cs4281_dma *dma = substream->runtime->private_data;  in snd_cs4281_trigger()
735 struct snd_pcm_runtime *runtime, in snd_cs4281_mode() argument
742 if (runtime->channels == 1) in snd_cs4281_mode()
744 if (snd_pcm_format_unsigned(runtime->format) > 0) in snd_cs4281_mode()
746 if (snd_pcm_format_big_endian(runtime->format) > 0) in snd_cs4281_mode()
748 switch (snd_pcm_format_width(runtime->format)) { in snd_cs4281_mode()
750 if (runtime->channels == 1) in snd_cs4281_mode()
757 if (runtime->buffer_size != runtime->period_size) in snd_cs4281_mode()
760 snd_cs4281_pokeBA0(chip, dma->regDBA, runtime->dma_addr); in snd_cs4281_mode()
761 snd_cs4281_pokeBA0(chip, dma->regDBC, runtime->buffer_size - 1); in snd_cs4281_mode()
771 unsigned int val = snd_cs4281_rate(runtime->rate, NULL); in snd_cs4281_mode()
777 unsigned int val = snd_cs4281_rate(runtime->rate, NULL); in snd_cs4281_mode()
812 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs4281_playback_prepare() local
813 struct cs4281_dma *dma = runtime->private_data; in snd_cs4281_playback_prepare()
817 snd_cs4281_mode(chip, dma, runtime, 0, 1); in snd_cs4281_playback_prepare()
824 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs4281_capture_prepare() local
825 struct cs4281_dma *dma = runtime->private_data; in snd_cs4281_capture_prepare()
829 snd_cs4281_mode(chip, dma, runtime, 1, 1); in snd_cs4281_capture_prepare()
836 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs4281_pointer() local
837 struct cs4281_dma *dma = runtime->private_data; in snd_cs4281_pointer()
846 return runtime->buffer_size - in snd_cs4281_pointer()
903 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs4281_playback_open() local
910 runtime->private_data = dma; in snd_cs4281_playback_open()
911 runtime->hw = snd_cs4281_playback; in snd_cs4281_playback_open()
915 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 20); in snd_cs4281_playback_open()
922 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs4281_capture_open() local
929 runtime->private_data = dma; in snd_cs4281_capture_open()
930 runtime->hw = snd_cs4281_capture; in snd_cs4281_capture_open()
934 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 20); in snd_cs4281_capture_open()
940 struct cs4281_dma *dma = substream->runtime->private_data; in snd_cs4281_playback_close()
948 struct cs4281_dma *dma = substream->runtime->private_data; in snd_cs4281_capture_close()