Lines Matching defs:runtime
636 chip->chip_idx, (void *)(long)subs->runtime->dma_addr,
637 subs->runtime->dma_bytes, subs->number);
644 snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000);
646 rmh.cmd[1] = subs->runtime->dma_bytes * 8;
648 rmh.cmd[2] = subs->runtime->dma_addr >> 24;
652 rmh.cmd[3] = subs->runtime->dma_addr & MASK_DSP_WORD;
838 stream = s->runtime->private_data;
845 stream = subs->runtime->private_data;
863 stream = s->runtime->private_data;
909 subs->runtime->period_size, subs->runtime->periods,
910 subs->runtime->buffer_size);
917 if (mgr->sample_rate != subs->runtime->rate) {
918 err = pcxhr_set_clock(mgr, subs->runtime->rate);
924 mgr->sample_rate = subs->runtime->rate;
942 struct pcxhr_stream *stream = subs->runtime->private_data;
991 struct snd_pcm_runtime *runtime = subs->runtime;
998 runtime->hw = pcxhr_caps;
1008 runtime->hw.channels_max = 1;
1010 runtime->hw.channels_min = 2;
1023 runtime->hw.formats &= ~SNDRV_PCM_FMTBIT_FLOAT_LE;
1026 err = snd_pcm_hw_constraint_integer(runtime,
1037 runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate;
1048 runtime->hw.rate_min = external_rate;
1049 runtime->hw.rate_max = external_rate;
1057 runtime->private_data = stream;
1060 snd_pcm_hw_constraint_step(runtime, 0,
1062 snd_pcm_hw_constraint_step(runtime, 0,
1077 struct pcxhr_stream *stream = subs->runtime->private_data;
1104 struct snd_pcm_runtime *runtime = subs->runtime;
1105 struct pcxhr_stream *stream = runtime->private_data;
1115 return (snd_pcm_uframes_t)((timer_buf_periods * runtime->period_size) +