Lines Matching defs:runtime

53 	struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime;
70 if ((hwptr_done += lens) >= runtime->buffer_size)
71 hwptr_done -= runtime->buffer_size;
75 if (subs->transfer_done >= runtime->period_size) {
76 subs->transfer_done -= runtime->period_size;
82 static inline int usx2y_iso_frames_per_buffer(struct snd_pcm_runtime *runtime,
85 return (runtime->buffer_size * 1000) / usx2y->rate + 1; //FIXME: so far only correct period_size == 2^x ?
104 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime;
108 usx2y_iso_frames_per_buffer(runtime, usx2y);
346 struct snd_pcm_runtime *runtime = substream->runtime;
347 struct snd_usx2y_substream *subs = runtime->private_data,
357 !cap_subs->pcm_substream->runtime ||
358 !cap_subs->pcm_substream->runtime->status ||
359 cap_subs->pcm_substream->runtime->status->state < SNDRV_PCM_STATE_PREPARED) {
471 struct snd_pcm_runtime *runtime = substream->runtime;
472 struct snd_usx2y_substream *subs = runtime->private_data;
491 if (usx2y->format != runtime->format)
492 if ((err = usx2y_format_set(usx2y, runtime->format)) < 0)
494 if (usx2y->rate != runtime->rate)
495 if ((err = usx2y_rate_set(usx2y, runtime->rate)) < 0)
506 while (usx2y_iso_frames_per_buffer(runtime, usx2y) >
510 usx2y_iso_frames_per_buffer(runtime, usx2y),
521 usx2y_iso_frames_per_buffer(runtime, usx2y),
556 struct snd_pcm_runtime *runtime = substream->runtime;
561 runtime->hw = SNDRV_PCM_STREAM_PLAYBACK == substream->stream ? snd_usx2y_2c :
563 runtime->private_data = subs;
565 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 1000, 200000);
572 struct snd_pcm_runtime *runtime = substream->runtime;
573 struct snd_usx2y_substream *subs = runtime->private_data;