Lines Matching defs:runtime

418 	struct mixart_stream *stream = subs->runtime->private_data;
480 struct mixart_stream *stream = subs->runtime->private_data;
491 chip->mgr->sample_rate = subs->runtime->rate;
495 if( mixart_set_clock(chip->mgr, stream->pipe, subs->runtime->rate) )
595 struct mixart_stream *stream = subs->runtime->private_data;
626 if (subs->runtime->buffer_changed) {
634 bufferinfo[i].buffer_address = subs->runtime->dma_addr;
635 bufferinfo[i].available_length = subs->runtime->dma_bytes;
708 struct snd_pcm_runtime *runtime = subs->runtime;
719 runtime->hw = snd_mixart_analog_caps;
723 runtime->hw = snd_mixart_digital_caps;
764 runtime->private_data = stream;
766 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32);
767 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 64);
772 runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate;
787 struct snd_pcm_runtime *runtime = subs->runtime;
798 runtime->hw = snd_mixart_analog_caps;
802 runtime->hw = snd_mixart_digital_caps;
805 runtime->hw.channels_min = 2; /* for instance, no mono */
845 runtime->private_data = stream;
847 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32);
848 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 64);
853 runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate;
869 struct mixart_stream *stream = subs->runtime->private_data;
900 struct snd_pcm_runtime *runtime = subs->runtime;
901 struct mixart_stream *stream = runtime->private_data;
903 return (snd_pcm_uframes_t)((stream->buf_periods * runtime->period_size) + stream->buf_period_frag);