Lines Matching defs:runtime
106 (*(const struct dummy_timer_ops **)(substream)->runtime->private_data)
110 int (*playback_constraints)(struct snd_pcm_runtime *runtime);
111 int (*capture_constraints)(struct snd_pcm_runtime *runtime);
142 static int emu10k1_playback_constraints(struct snd_pcm_runtime *runtime)
145 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
148 err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 256, UINT_MAX);
270 struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
280 struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
289 struct snd_pcm_runtime *runtime = substream->runtime;
290 struct dummy_systimer_pcm *dpcm = runtime->private_data;
293 dpcm->rate = runtime->rate;
294 dpcm->frac_buffer_size = runtime->buffer_size * HZ;
295 dpcm->frac_period_size = runtime->period_size * HZ;
321 struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
338 substream->runtime->private_data = dpcm;
347 kfree(substream->runtime->private_data);
395 struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data;
405 struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data;
421 struct snd_pcm_runtime *runtime = substream->runtime;
422 struct dummy_hrtimer_pcm *dpcm = runtime->private_data;
428 delta = div_u64(delta * runtime->rate + 999999, 1000000);
429 div_u64_rem(delta, runtime->buffer_size, &pos);
435 struct snd_pcm_runtime *runtime = substream->runtime;
436 struct dummy_hrtimer_pcm *dpcm = runtime->private_data;
442 period = runtime->period_size;
443 rate = runtime->rate;
459 substream->runtime->private_data = dpcm;
469 struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data;
535 /* runtime->dma_bytes has to be set manually to allow mmap */
536 substream->runtime->dma_bytes = params_buffer_bytes(hw_params);
546 struct snd_pcm_runtime *runtime = substream->runtime;
561 runtime->hw = dummy->pcm_hw;
563 runtime->hw.info &= ~SNDRV_PCM_INFO_INTERLEAVED;
564 runtime->hw.info |= SNDRV_PCM_INFO_NONINTERLEAVED;
567 runtime->hw.info &= ~(SNDRV_PCM_INFO_MMAP |
575 err = model->playback_constraints(substream->runtime);
578 err = model->capture_constraints(substream->runtime);