Lines Matching refs:runtime
712 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sonicvibes_playback_prepare() local
719 if (runtime->channels > 1) in snd_sonicvibes_playback_prepare()
721 if (snd_pcm_format_width(runtime->format) == 16) in snd_sonicvibes_playback_prepare()
724 snd_sonicvibes_set_dac_rate(sonic, runtime->rate); in snd_sonicvibes_playback_prepare()
726 snd_sonicvibes_setdmaa(sonic, runtime->dma_addr, size); in snd_sonicvibes_playback_prepare()
736 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sonicvibes_capture_prepare() local
744 if (runtime->channels > 1) in snd_sonicvibes_capture_prepare()
746 if (snd_pcm_format_width(runtime->format) == 16) in snd_sonicvibes_capture_prepare()
749 snd_sonicvibes_set_adc_rate(sonic, runtime->rate); in snd_sonicvibes_capture_prepare()
751 snd_sonicvibes_setdmac(sonic, runtime->dma_addr, size); in snd_sonicvibes_capture_prepare()
766 return bytes_to_frames(substream->runtime, ptr); in snd_sonicvibes_playback_pointer()
776 return bytes_to_frames(substream->runtime, ptr); in snd_sonicvibes_capture_pointer()
820 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sonicvibes_playback_open() local
824 runtime->hw = snd_sonicvibes_playback; in snd_sonicvibes_playback_open()
825 …snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, snd_sonicvibes_hw_constraint_dac_rate, NU… in snd_sonicvibes_playback_open()
832 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sonicvibes_capture_open() local
836 runtime->hw = snd_sonicvibes_capture; in snd_sonicvibes_capture_open()
837 snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_sonicvibes_capture_open()