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 = AMDTP_IN_PCM_FORMAT_BITS; in init_hw_params()
141 runtime->hw.formats = AMDTP_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_stream_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()
236 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_capture_hw_params()
252 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_playback_hw_params()
270 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_capture_hw_free()
285 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_playback_hw_free()
298 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_capture_prepare() local
303 runtime->rate, runtime->channels); in pcm_capture_prepare()
315 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_playback_prepare() local
320 runtime->rate, runtime->channels); in pcm_playback_prepare()