Lines Matching defs:runtime

439 	struct snd_pcm_runtime *runtime = substream->runtime;
440 struct voice *voice = runtime->private_data;
474 struct snd_pcm_runtime *runtime = substream->runtime;
482 runtime->private_data = voice;
483 runtime->hw = sis_playback_hw_info;
484 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
486 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
495 struct snd_pcm_runtime *runtime = substream->runtime;
496 struct voice *voice = runtime->private_data;
504 struct snd_pcm_runtime *runtime = substream->runtime;
505 struct voice *voice = runtime->private_data;
515 if (snd_pcm_format_width(runtime->format) == 8)
517 if (!snd_pcm_format_signed(runtime->format))
519 if (runtime->channels == 1)
525 dma_addr = runtime->dma_addr;
526 leo = runtime->buffer_size - 1;
530 if (runtime->period_size == (runtime->buffer_size / 2)) {
532 } else if (runtime->period_size != runtime->buffer_size) {
534 voice->sso = runtime->period_size - 1;
535 voice->period_size = runtime->period_size;
536 voice->buffer_size = runtime->buffer_size;
540 sso_eso |= (runtime->period_size - 1) << 16;
543 delta = sis_rate_to_delta(runtime->rate);
604 voice = s->runtime->private_data;
639 struct snd_pcm_runtime *runtime = substream->runtime;
640 struct voice *voice = runtime->private_data;
651 struct snd_pcm_runtime *runtime = substream->runtime;
669 runtime->private_data = voice;
670 runtime->hw = sis_capture_hw_info;
671 runtime->hw.rates = sis->ac97[0]->rates[AC97_RATES_ADC];
672 snd_pcm_limit_hw_rates(runtime);
673 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
675 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
702 struct snd_pcm_runtime *runtime = substream->runtime;
713 buffer_size = 4096 / runtime->channels;
714 buffer_size /= snd_pcm_format_size(runtime->format, 1);
729 vperiod = runtime->period_size + 12;
748 period_size = runtime->period_size;
758 timing->sync_cso = runtime->period_size;
759 timing->sync_period_size = runtime->period_size;
760 timing->sync_buffer_size = runtime->buffer_size;
771 if (snd_pcm_format_width(runtime->format) == 8)
773 if (runtime->channels == 1)
781 delta = sis_rate_to_delta(runtime->rate);
803 struct snd_pcm_runtime *runtime = substream->runtime;
804 struct voice *voice = runtime->private_data;
813 if (snd_pcm_format_width(runtime->format) == 8)
815 if (!snd_pcm_format_signed(runtime->format))
817 if (runtime->channels == 1)
820 dma_addr = runtime->dma_addr;
821 leo = runtime->buffer_size - 1;
832 if (runtime->period_size != runtime->buffer_size)