Lines Matching defs:runtime

419 	struct mixart_stream *stream = subs->runtime->private_data;
481 struct mixart_stream *stream = subs->runtime->private_data;
492 chip->mgr->sample_rate = subs->runtime->rate;
496 if( mixart_set_clock(chip->mgr, stream->pipe, subs->runtime->rate) )
596 struct mixart_stream *stream = subs->runtime->private_data;
627 if (subs->runtime->buffer_changed) {
635 bufferinfo[i].buffer_address = subs->runtime->dma_addr;
636 bufferinfo[i].available_length = subs->runtime->dma_bytes;
709 struct snd_pcm_runtime *runtime = subs->runtime;
720 runtime->hw = snd_mixart_analog_caps;
724 runtime->hw = snd_mixart_digital_caps;
765 runtime->private_data = stream;
767 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32);
768 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 64);
773 runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate;
788 struct snd_pcm_runtime *runtime = subs->runtime;
799 runtime->hw = snd_mixart_analog_caps;
803 runtime->hw = snd_mixart_digital_caps;
806 runtime->hw.channels_min = 2; /* for instance, no mono */
846 runtime->private_data = stream;
848 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32);
849 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 64);
854 runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate;
870 struct mixart_stream *stream = subs->runtime->private_data;
901 struct snd_pcm_runtime *runtime = subs->runtime;
902 struct mixart_stream *stream = runtime->private_data;
904 return (snd_pcm_uframes_t)((stream->buf_periods * runtime->period_size) + stream->buf_period_frag);