Lines Matching refs:runtime
13 struct snd_pcm_runtime *runtime = substream->runtime;
14 struct snd_pcm_hardware *hw = &runtime->hw;
19 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32;
23 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32;
32 runtime->hw.channels_min = runtime->hw.channels_max = pcm_channels;
38 snd_pcm_limit_hw_rates(runtime);
40 return amdtp_tscm_add_pcm_hw_constraints(stream, runtime);
77 substream->runtime->hw.rate_min = rate;
78 substream->runtime->hw.rate_max = rate;
80 err = snd_pcm_hw_constraint_minmax(substream->runtime,
88 err = snd_pcm_hw_constraint_minmax(substream->runtime,
122 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) {
144 if (substream->runtime->state != SNDRV_PCM_STATE_OPEN)
157 struct snd_pcm_runtime *runtime = substream->runtime;
162 err = snd_tscm_stream_start_duplex(tscm, runtime->rate);
174 struct snd_pcm_runtime *runtime = substream->runtime;
179 err = snd_tscm_stream_start_duplex(tscm, runtime->rate);