Lines Matching refs:runtime
65 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usX2Y_usbpcm_urb_capt_retire() local
82 if ((hwptr_done += lens) >= runtime->buffer_size) in usX2Y_usbpcm_urb_capt_retire()
83 hwptr_done -= runtime->buffer_size; in usX2Y_usbpcm_urb_capt_retire()
87 if (subs->transfer_done >= runtime->period_size) { in usX2Y_usbpcm_urb_capt_retire()
88 subs->transfer_done -= runtime->period_size; in usX2Y_usbpcm_urb_capt_retire()
94 static inline int usX2Y_iso_frames_per_buffer(struct snd_pcm_runtime *runtime, in usX2Y_iso_frames_per_buffer() argument
97 …return (runtime->buffer_size * 1000) / usX2Y->rate + 1; //FIXME: so far only correct period_size =… in usX2Y_iso_frames_per_buffer()
116 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usX2Y_hwdep_urb_play_prepare() local
120 usX2Y_iso_frames_per_buffer(runtime, usX2Y); in usX2Y_hwdep_urb_play_prepare()
358 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usX2Y_usbpcm_hw_free() local
359 struct snd_usX2Y_substream *subs = runtime->private_data, in snd_usX2Y_usbpcm_hw_free()
369 !cap_subs->pcm_substream->runtime || in snd_usX2Y_usbpcm_hw_free()
370 !cap_subs->pcm_substream->runtime->status || in snd_usX2Y_usbpcm_hw_free()
371 cap_subs->pcm_substream->runtime->status->state < SNDRV_PCM_STATE_PREPARED) { in snd_usX2Y_usbpcm_hw_free()
483 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usX2Y_usbpcm_prepare() local
484 struct snd_usX2Y_substream *subs = runtime->private_data; in snd_usX2Y_usbpcm_prepare()
501 if (usX2Y->format != runtime->format) in snd_usX2Y_usbpcm_prepare()
502 if ((err = usX2Y_format_set(usX2Y, runtime->format)) < 0) in snd_usX2Y_usbpcm_prepare()
504 if (usX2Y->rate != runtime->rate) in snd_usX2Y_usbpcm_prepare()
505 if ((err = usX2Y_rate_set(usX2Y, runtime->rate)) < 0) in snd_usX2Y_usbpcm_prepare()
516 while (usX2Y_iso_frames_per_buffer(runtime, usX2Y) > in snd_usX2Y_usbpcm_prepare()
520 usX2Y_iso_frames_per_buffer(runtime, usX2Y), in snd_usX2Y_usbpcm_prepare()
531 usX2Y_iso_frames_per_buffer(runtime, usX2Y), in snd_usX2Y_usbpcm_prepare()
566 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usX2Y_usbpcm_open() local
571 runtime->hw = SNDRV_PCM_STREAM_PLAYBACK == substream->stream ? snd_usX2Y_2c : in snd_usX2Y_usbpcm_open()
573 runtime->private_data = subs; in snd_usX2Y_usbpcm_open()
575 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 1000, 200000); in snd_usX2Y_usbpcm_open()
582 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usX2Y_usbpcm_close() local
583 struct snd_usX2Y_substream *subs = runtime->private_data; in snd_usX2Y_usbpcm_close()