Lines Matching refs:runtime

448 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_fm801_playback_prepare()  local
456 if (snd_pcm_format_width(runtime->format) == 16) in snd_fm801_playback_prepare()
458 if (runtime->channels > 1) { in snd_fm801_playback_prepare()
460 if (runtime->channels == 4) in snd_fm801_playback_prepare()
462 else if (runtime->channels == 6) in snd_fm801_playback_prepare()
465 chip->ply_ctrl |= snd_fm801_rate_bits(runtime->rate) << FM801_RATE_SHIFT; in snd_fm801_playback_prepare()
469 chip->ply_buffer = runtime->dma_addr; in snd_fm801_playback_prepare()
481 struct snd_pcm_runtime *runtime = substream->runtime; in snd_fm801_capture_prepare() local
488 if (snd_pcm_format_width(runtime->format) == 16) in snd_fm801_capture_prepare()
490 if (runtime->channels > 1) in snd_fm801_capture_prepare()
492 chip->cap_ctrl |= snd_fm801_rate_bits(runtime->rate) << FM801_RATE_SHIFT; in snd_fm801_capture_prepare()
496 chip->cap_buffer = runtime->dma_addr; in snd_fm801_capture_prepare()
519 return bytes_to_frames(substream->runtime, ptr); in snd_fm801_playback_pointer()
536 return bytes_to_frames(substream->runtime, ptr); in snd_fm801_capture_pointer()
630 struct snd_pcm_runtime *runtime = substream->runtime; in snd_fm801_playback_open() local
634 runtime->hw = snd_fm801_playback; in snd_fm801_playback_open()
635 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_fm801_playback_open()
638 runtime->hw.channels_max = 6; in snd_fm801_playback_open()
639 snd_pcm_hw_constraint_list(runtime, 0, in snd_fm801_playback_open()
643 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) in snd_fm801_playback_open()
651 struct snd_pcm_runtime *runtime = substream->runtime; in snd_fm801_capture_open() local
655 runtime->hw = snd_fm801_capture; in snd_fm801_capture_open()
656 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_fm801_capture_open()
658 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) in snd_fm801_capture_open()