Lines Matching defs:runtime
135 struct snd_pcm_runtime *runtime = substream->runtime;
141 runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS;
145 runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS;
151 runtime->hw.rates = efw->supported_sampling_rate;
152 snd_pcm_limit_hw_rates(runtime);
154 limit_channels(&runtime->hw, pcm_channels);
156 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
162 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
168 err = amdtp_am824_add_pcm_hw_constraints(s, runtime);
208 substream->runtime->hw.rate_min = sampling_rate;
209 substream->runtime->hw.rate_max = sampling_rate;
212 err = snd_pcm_hw_constraint_minmax(substream->runtime,
220 err = snd_pcm_hw_constraint_minmax(substream->runtime,
253 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) {
275 if (substream->runtime->state != SNDRV_PCM_STATE_OPEN)