Lines Matching refs:runtime

649 		chip->chip_idx, (void *)(long)subs->runtime->dma_addr,  in pcxhr_update_r_buffer()
650 subs->runtime->dma_bytes, subs->number); in pcxhr_update_r_buffer()
657 snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000); in pcxhr_update_r_buffer()
659 rmh.cmd[1] = subs->runtime->dma_bytes * 8; in pcxhr_update_r_buffer()
661 rmh.cmd[2] = subs->runtime->dma_addr >> 24; in pcxhr_update_r_buffer()
665 rmh.cmd[3] = subs->runtime->dma_addr & MASK_DSP_WORD; in pcxhr_update_r_buffer()
851 stream = s->runtime->private_data; in pcxhr_trigger()
858 stream = subs->runtime->private_data; in pcxhr_trigger()
876 stream = s->runtime->private_data; in pcxhr_trigger()
922 subs->runtime->period_size, subs->runtime->periods, in pcxhr_prepare()
923 subs->runtime->buffer_size); in pcxhr_prepare()
930 if (mgr->sample_rate != subs->runtime->rate) { in pcxhr_prepare()
931 err = pcxhr_set_clock(mgr, subs->runtime->rate); in pcxhr_prepare()
937 mgr->sample_rate = subs->runtime->rate; in pcxhr_prepare()
955 struct pcxhr_stream *stream = subs->runtime->private_data; in pcxhr_hw_params()
1020 struct snd_pcm_runtime *runtime = subs->runtime; in pcxhr_open() local
1027 runtime->hw = pcxhr_caps; in pcxhr_open()
1037 runtime->hw.channels_max = 1; in pcxhr_open()
1039 runtime->hw.channels_min = 2; in pcxhr_open()
1052 runtime->hw.formats &= ~SNDRV_PCM_FMTBIT_FLOAT_LE; in pcxhr_open()
1055 err = snd_pcm_hw_constraint_integer(runtime, in pcxhr_open()
1066 runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate; in pcxhr_open()
1077 runtime->hw.rate_min = external_rate; in pcxhr_open()
1078 runtime->hw.rate_max = external_rate; in pcxhr_open()
1086 runtime->private_data = stream; in pcxhr_open()
1089 snd_pcm_hw_constraint_step(runtime, 0, in pcxhr_open()
1091 snd_pcm_hw_constraint_step(runtime, 0, in pcxhr_open()
1106 struct pcxhr_stream *stream = subs->runtime->private_data; in pcxhr_close()
1133 struct snd_pcm_runtime *runtime = subs->runtime; in pcxhr_stream_pointer() local
1134 struct pcxhr_stream *stream = runtime->private_data; in pcxhr_stream_pointer()
1144 return (snd_pcm_uframes_t)((timer_buf_periods * runtime->period_size) + in pcxhr_stream_pointer()