Lines Matching refs:runtime
13 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params() local
14 struct snd_pcm_hardware *hw = &runtime->hw; in pcm_init_hw_params()
19 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; in pcm_init_hw_params()
23 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; in pcm_init_hw_params()
32 runtime->hw.channels_min = runtime->hw.channels_max = pcm_channels; in pcm_init_hw_params()
38 snd_pcm_limit_hw_rates(runtime); in pcm_init_hw_params()
40 return amdtp_tscm_add_pcm_hw_constraints(stream, runtime); in pcm_init_hw_params()
77 substream->runtime->hw.rate_min = rate; in pcm_open()
78 substream->runtime->hw.rate_max = rate; in pcm_open()
80 err = snd_pcm_hw_constraint_minmax(substream->runtime, in pcm_open()
88 err = snd_pcm_hw_constraint_minmax(substream->runtime, in pcm_open()
122 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) { in pcm_hw_params()
144 if (substream->runtime->state != SNDRV_PCM_STATE_OPEN) in pcm_hw_free()
157 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_capture_prepare() local
162 err = snd_tscm_stream_start_duplex(tscm, runtime->rate); in pcm_capture_prepare()
174 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_playback_prepare() local
179 err = snd_tscm_stream_start_duplex(tscm, runtime->rate); in pcm_playback_prepare()