Lines Matching defs:runtime
99 (*(const struct dummy_timer_ops **)(substream)->runtime->private_data)
103 int (*playback_constraints)(struct snd_pcm_runtime *runtime);
104 int (*capture_constraints)(struct snd_pcm_runtime *runtime);
135 static int emu10k1_playback_constraints(struct snd_pcm_runtime *runtime)
138 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
141 err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 256, UINT_MAX);
263 struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
273 struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
282 struct snd_pcm_runtime *runtime = substream->runtime;
283 struct dummy_systimer_pcm *dpcm = runtime->private_data;
286 dpcm->rate = runtime->rate;
287 dpcm->frac_buffer_size = runtime->buffer_size * HZ;
288 dpcm->frac_period_size = runtime->period_size * HZ;
314 struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
331 substream->runtime->private_data = dpcm;
340 kfree(substream->runtime->private_data);
388 struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data;
398 struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data;
414 struct snd_pcm_runtime *runtime = substream->runtime;
415 struct dummy_hrtimer_pcm *dpcm = runtime->private_data;
421 delta = div_u64(delta * runtime->rate + 999999, 1000000);
422 div_u64_rem(delta, runtime->buffer_size, &pos);
428 struct snd_pcm_runtime *runtime = substream->runtime;
429 struct dummy_hrtimer_pcm *dpcm = runtime->private_data;
435 period = runtime->period_size;
436 rate = runtime->rate;
452 substream->runtime->private_data = dpcm;
462 struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data;
528 /* runtime->dma_bytes has to be set manually to allow mmap */
529 substream->runtime->dma_bytes = params_buffer_bytes(hw_params);
539 struct snd_pcm_runtime *runtime = substream->runtime;
554 runtime->hw = dummy->pcm_hw;
556 runtime->hw.info &= ~SNDRV_PCM_INFO_INTERLEAVED;
557 runtime->hw.info |= SNDRV_PCM_INFO_NONINTERLEAVED;
560 runtime->hw.info &= ~(SNDRV_PCM_INFO_MMAP |
568 err = model->playback_constraints(substream->runtime);
571 err = model->capture_constraints(substream->runtime);