Lines Matching refs:runtime

113 	(*(const struct dummy_timer_ops **)(substream)->runtime->private_data)
117 int (*playback_constraints)(struct snd_pcm_runtime *runtime);
118 int (*capture_constraints)(struct snd_pcm_runtime *runtime);
149 static int emu10k1_playback_constraints(struct snd_pcm_runtime *runtime) in emu10k1_playback_constraints() argument
152 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in emu10k1_playback_constraints()
155 err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 256, UINT_MAX); in emu10k1_playback_constraints()
277 struct dummy_systimer_pcm *dpcm = substream->runtime->private_data; in dummy_systimer_start()
287 struct dummy_systimer_pcm *dpcm = substream->runtime->private_data; in dummy_systimer_stop()
296 struct snd_pcm_runtime *runtime = substream->runtime; in dummy_systimer_prepare() local
297 struct dummy_systimer_pcm *dpcm = runtime->private_data; in dummy_systimer_prepare()
300 dpcm->rate = runtime->rate; in dummy_systimer_prepare()
301 dpcm->frac_buffer_size = runtime->buffer_size * HZ; in dummy_systimer_prepare()
302 dpcm->frac_period_size = runtime->period_size * HZ; in dummy_systimer_prepare()
328 struct dummy_systimer_pcm *dpcm = substream->runtime->private_data; in dummy_systimer_pointer()
345 substream->runtime->private_data = dpcm; in dummy_systimer_create()
355 kfree(substream->runtime->private_data); in dummy_systimer_free()
404 struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data; in dummy_hrtimer_start()
414 struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data; in dummy_hrtimer_stop()
429 struct snd_pcm_runtime *runtime = substream->runtime; in dummy_hrtimer_pointer() local
430 struct dummy_hrtimer_pcm *dpcm = runtime->private_data; in dummy_hrtimer_pointer()
436 delta = div_u64(delta * runtime->rate + 999999, 1000000); in dummy_hrtimer_pointer()
437 div_u64_rem(delta, runtime->buffer_size, &pos); in dummy_hrtimer_pointer()
443 struct snd_pcm_runtime *runtime = substream->runtime; in dummy_hrtimer_prepare() local
444 struct dummy_hrtimer_pcm *dpcm = runtime->private_data; in dummy_hrtimer_prepare()
450 period = runtime->period_size; in dummy_hrtimer_prepare()
451 rate = runtime->rate; in dummy_hrtimer_prepare()
467 substream->runtime->private_data = dpcm; in dummy_hrtimer_create()
479 struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data; in dummy_hrtimer_free()
546 substream->runtime->dma_bytes = params_buffer_bytes(hw_params); in dummy_pcm_hw_params()
564 struct snd_pcm_runtime *runtime = substream->runtime; in dummy_pcm_open() local
579 runtime->hw = dummy->pcm_hw; in dummy_pcm_open()
581 runtime->hw.info &= ~SNDRV_PCM_INFO_INTERLEAVED; in dummy_pcm_open()
582 runtime->hw.info |= SNDRV_PCM_INFO_NONINTERLEAVED; in dummy_pcm_open()
585 runtime->hw.info &= ~(SNDRV_PCM_INFO_MMAP | in dummy_pcm_open()
593 err = model->playback_constraints(substream->runtime); in dummy_pcm_open()
596 err = model->capture_constraints(substream->runtime); in dummy_pcm_open()