Lines Matching defs:runtime
98 struct snd_pcm_runtime *runtime = substream->runtime;
104 runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS;
108 runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS;
113 limit_channels_and_rates(&runtime->hw, formations);
115 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
121 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
127 err = amdtp_am824_add_pcm_hw_constraints(s, runtime);
171 substream->runtime->hw.rate_min = sampling_rate;
172 substream->runtime->hw.rate_max = sampling_rate;
175 err = snd_pcm_hw_constraint_minmax(substream->runtime,
183 err = snd_pcm_hw_constraint_minmax(substream->runtime,
217 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
239 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)