Lines Matching defs:runtime
635 chip->chip_idx, (void *)(long)subs->runtime->dma_addr,
636 subs->runtime->dma_bytes, subs->number);
643 snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000);
645 rmh.cmd[1] = subs->runtime->dma_bytes * 8;
647 rmh.cmd[2] = subs->runtime->dma_addr >> 24;
651 rmh.cmd[3] = subs->runtime->dma_addr & MASK_DSP_WORD;
836 stream = s->runtime->private_data;
843 stream = subs->runtime->private_data;
861 stream = s->runtime->private_data;
907 subs->runtime->period_size, subs->runtime->periods,
908 subs->runtime->buffer_size);
915 if (mgr->sample_rate != subs->runtime->rate) {
916 err = pcxhr_set_clock(mgr, subs->runtime->rate);
922 mgr->sample_rate = subs->runtime->rate;
940 struct pcxhr_stream *stream = subs->runtime->private_data;
989 struct snd_pcm_runtime *runtime = subs->runtime;
996 runtime->hw = pcxhr_caps;
1006 runtime->hw.channels_max = 1;
1008 runtime->hw.channels_min = 2;
1021 runtime->hw.formats &= ~SNDRV_PCM_FMTBIT_FLOAT_LE;
1024 err = snd_pcm_hw_constraint_integer(runtime,
1035 runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate;
1046 runtime->hw.rate_min = external_rate;
1047 runtime->hw.rate_max = external_rate;
1055 runtime->private_data = stream;
1058 snd_pcm_hw_constraint_step(runtime, 0,
1060 snd_pcm_hw_constraint_step(runtime, 0,
1075 struct pcxhr_stream *stream = subs->runtime->private_data;
1102 struct snd_pcm_runtime *runtime = subs->runtime;
1103 struct pcxhr_stream *stream = runtime->private_data;
1113 return (snd_pcm_uframes_t)((timer_buf_periods * runtime->period_size) +