Lines Matching defs:runtime

434 	struct snd_pcm_runtime *runtime = substream->runtime;
435 struct voice *voice = runtime->private_data;
469 struct snd_pcm_runtime *runtime = substream->runtime;
477 runtime->private_data = voice;
478 runtime->hw = sis_playback_hw_info;
479 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
481 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
490 struct snd_pcm_runtime *runtime = substream->runtime;
491 struct voice *voice = runtime->private_data;
499 struct snd_pcm_runtime *runtime = substream->runtime;
500 struct voice *voice = runtime->private_data;
510 if (snd_pcm_format_width(runtime->format) == 8)
512 if (!snd_pcm_format_signed(runtime->format))
514 if (runtime->channels == 1)
520 dma_addr = runtime->dma_addr;
521 leo = runtime->buffer_size - 1;
525 if (runtime->period_size == (runtime->buffer_size / 2)) {
527 } else if (runtime->period_size != runtime->buffer_size) {
529 voice->sso = runtime->period_size - 1;
530 voice->period_size = runtime->period_size;
531 voice->buffer_size = runtime->buffer_size;
535 sso_eso |= (runtime->period_size - 1) << 16;
538 delta = sis_rate_to_delta(runtime->rate);
599 voice = s->runtime->private_data;
634 struct snd_pcm_runtime *runtime = substream->runtime;
635 struct voice *voice = runtime->private_data;
646 struct snd_pcm_runtime *runtime = substream->runtime;
664 runtime->private_data = voice;
665 runtime->hw = sis_capture_hw_info;
666 runtime->hw.rates = sis->ac97[0]->rates[AC97_RATES_ADC];
667 snd_pcm_limit_hw_rates(runtime);
668 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
670 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
697 struct snd_pcm_runtime *runtime = substream->runtime;
708 buffer_size = 4096 / runtime->channels;
709 buffer_size /= snd_pcm_format_size(runtime->format, 1);
724 vperiod = runtime->period_size + 12;
743 period_size = runtime->period_size;
753 timing->sync_cso = runtime->period_size;
754 timing->sync_period_size = runtime->period_size;
755 timing->sync_buffer_size = runtime->buffer_size;
766 if (snd_pcm_format_width(runtime->format) == 8)
768 if (runtime->channels == 1)
776 delta = sis_rate_to_delta(runtime->rate);
798 struct snd_pcm_runtime *runtime = substream->runtime;
799 struct voice *voice = runtime->private_data;
808 if (snd_pcm_format_width(runtime->format) == 8)
810 if (!snd_pcm_format_signed(runtime->format))
812 if (runtime->channels == 1)
815 dma_addr = runtime->dma_addr;
816 leo = runtime->buffer_size - 1;
827 if (runtime->period_size != runtime->buffer_size)