Lines Matching refs:runtime
149 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params() local
154 runtime->hw.info = SNDRV_PCM_INFO_BATCH | in pcm_init_hw_params()
162 runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS; in pcm_init_hw_params()
166 runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS; in pcm_init_hw_params()
172 runtime->hw.rates = efw->supported_sampling_rate, in pcm_init_hw_params()
173 snd_pcm_limit_hw_rates(runtime); in pcm_init_hw_params()
175 limit_channels(&runtime->hw, pcm_channels); in pcm_init_hw_params()
176 limit_period_and_buffer(&runtime->hw); in pcm_init_hw_params()
178 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in pcm_init_hw_params()
184 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in pcm_init_hw_params()
190 err = amdtp_am824_add_pcm_hw_constraints(s, runtime); in pcm_init_hw_params()
224 substream->runtime->hw.rate_min = sampling_rate; in pcm_open()
225 substream->runtime->hw.rate_max = sampling_rate; in pcm_open()
254 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in pcm_capture_hw_params()
272 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in pcm_playback_hw_params()
284 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_capture_hw_free()
295 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in pcm_playback_hw_free()
306 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_capture_prepare() local
309 err = snd_efw_stream_start_duplex(efw, runtime->rate); in pcm_capture_prepare()
318 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_playback_prepare() local
321 err = snd_efw_stream_start_duplex(efw, runtime->rate); in pcm_playback_prepare()