Lines Matching defs:runtime
52 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime;
74 if (hwptr_done >= runtime->buffer_size)
75 hwptr_done -= runtime->buffer_size;
79 if (subs->transfer_done >= runtime->period_size) {
80 subs->transfer_done -= runtime->period_size;
86 static int usx2y_iso_frames_per_buffer(struct snd_pcm_runtime *runtime,
89 return (runtime->buffer_size * 1000) / usx2y->rate + 1; //FIXME: so far only correct period_size == 2^x ?
108 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime;
112 usx2y_iso_frames_per_buffer(runtime, usx2y);
361 struct snd_pcm_runtime *runtime = substream->runtime;
362 struct snd_usx2y_substream *subs = runtime->private_data;
376 !cap_subs->pcm_substream->runtime ||
377 cap_subs->pcm_substream->runtime->state < SNDRV_PCM_STATE_PREPARED) {
497 struct snd_pcm_runtime *runtime = substream->runtime;
498 struct snd_usx2y_substream *subs = runtime->private_data;
521 if (usx2y->format != runtime->format) {
522 err = usx2y_format_set(usx2y, runtime->format);
526 if (usx2y->rate != runtime->rate) {
527 err = usx2y_rate_set(usx2y, runtime->rate);
541 while (usx2y_iso_frames_per_buffer(runtime, usx2y) >
544 usx2y_iso_frames_per_buffer(runtime, usx2y),
556 usx2y_iso_frames_per_buffer(runtime, usx2y),
590 struct snd_pcm_runtime *runtime = substream->runtime;
596 runtime->hw = snd_usx2y_2c;
598 runtime->hw = (subs->usx2y->subs[3] ? snd_usx2y_4c : snd_usx2y_2c);
599 runtime->private_data = subs;
601 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 1000, 200000);
607 struct snd_pcm_runtime *runtime = substream->runtime;
608 struct snd_usx2y_substream *subs = runtime->private_data;