Lines Matching refs:runtime

124 	struct snd_pcm_runtime *runtime = substream->runtime;  in init_hw_params()  local
129 runtime->hw.info = SNDRV_PCM_INFO_BATCH | in init_hw_params()
137 runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS; in init_hw_params()
141 runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS; in init_hw_params()
146 limit_channels_and_rates(&runtime->hw, formats); in init_hw_params()
147 limit_period_and_buffer(&runtime->hw); in init_hw_params()
149 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in init_hw_params()
155 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in init_hw_params()
161 err = amdtp_am824_add_pcm_hw_constraints(stream, runtime); in init_hw_params()
182 substream->runtime->hw.channels_min = formation.pcm; in limit_to_current_params()
183 substream->runtime->hw.channels_max = formation.pcm; in limit_to_current_params()
184 substream->runtime->hw.rate_min = formation.rate; in limit_to_current_params()
185 substream->runtime->hw.rate_max = formation.rate; in limit_to_current_params()
241 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_capture_hw_params()
262 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_playback_hw_params()
279 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_capture_hw_free()
294 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_playback_hw_free()
307 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_capture_prepare() local
312 runtime->rate, runtime->channels); in pcm_capture_prepare()
324 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_playback_prepare() local
329 runtime->rate, runtime->channels); in pcm_playback_prepare()