Lines Matching defs:runtime
112 struct snd_pcm_runtime *runtime = substream->runtime;
118 runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS;
122 runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS;
127 limit_channels_and_rates(&runtime->hw, formats);
129 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
135 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
141 err = amdtp_am824_add_pcm_hw_constraints(stream, runtime);
162 substream->runtime->hw.channels_min = formation.pcm;
163 substream->runtime->hw.channels_max = formation.pcm;
164 substream->runtime->hw.rate_min = formation.rate;
165 substream->runtime->hw.rate_max = formation.rate;
200 err = snd_pcm_hw_constraint_minmax(substream->runtime,
208 err = snd_pcm_hw_constraint_minmax(substream->runtime,
242 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) {
265 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) {
289 if (substream->runtime->state != SNDRV_PCM_STATE_OPEN)
304 if (substream->runtime->state != SNDRV_PCM_STATE_OPEN)