Lines Matching refs:runtime
85 substream->runtime->hw = hardware; in pcm_init_hw_params()
88 substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; in pcm_init_hw_params()
91 substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S16 | in pcm_init_hw_params()
96 err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_init_hw_params()
103 err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_init_hw_params()
110 return amdtp_dot_add_pcm_hw_constraints(s, substream->runtime); in pcm_init_hw_params()
149 substream->runtime->hw.rate_min = rate; in pcm_open()
150 substream->runtime->hw.rate_max = rate; in pcm_open()
181 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_capture_hw_params()
203 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_playback_hw_params()
220 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_capture_hw_free()
236 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_playback_hw_free()
249 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_capture_prepare() local
254 err = snd_dg00x_stream_start_duplex(dg00x, runtime->rate); in pcm_capture_prepare()
266 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_playback_prepare() local
271 err = snd_dg00x_stream_start_duplex(dg00x, runtime->rate); in pcm_playback_prepare()