Lines Matching defs:runtime
438 struct snd_pcm_runtime *runtime = substream->runtime;
439 struct voice *voice = runtime->private_data;
473 struct snd_pcm_runtime *runtime = substream->runtime;
481 runtime->private_data = voice;
482 runtime->hw = sis_playback_hw_info;
483 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
485 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
494 struct snd_pcm_runtime *runtime = substream->runtime;
495 struct voice *voice = runtime->private_data;
503 struct snd_pcm_runtime *runtime = substream->runtime;
504 struct voice *voice = runtime->private_data;
514 if (snd_pcm_format_width(runtime->format) == 8)
516 if (!snd_pcm_format_signed(runtime->format))
518 if (runtime->channels == 1)
524 dma_addr = runtime->dma_addr;
525 leo = runtime->buffer_size - 1;
529 if (runtime->period_size == (runtime->buffer_size / 2)) {
531 } else if (runtime->period_size != runtime->buffer_size) {
533 voice->sso = runtime->period_size - 1;
534 voice->period_size = runtime->period_size;
535 voice->buffer_size = runtime->buffer_size;
539 sso_eso |= (runtime->period_size - 1) << 16;
542 delta = sis_rate_to_delta(runtime->rate);
603 voice = s->runtime->private_data;
638 struct snd_pcm_runtime *runtime = substream->runtime;
639 struct voice *voice = runtime->private_data;
650 struct snd_pcm_runtime *runtime = substream->runtime;
668 runtime->private_data = voice;
669 runtime->hw = sis_capture_hw_info;
670 runtime->hw.rates = sis->ac97[0]->rates[AC97_RATES_ADC];
671 snd_pcm_limit_hw_rates(runtime);
672 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
674 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
701 struct snd_pcm_runtime *runtime = substream->runtime;
712 buffer_size = 4096 / runtime->channels;
713 buffer_size /= snd_pcm_format_size(runtime->format, 1);
728 vperiod = runtime->period_size + 12;
747 period_size = runtime->period_size;
757 timing->sync_cso = runtime->period_size;
758 timing->sync_period_size = runtime->period_size;
759 timing->sync_buffer_size = runtime->buffer_size;
770 if (snd_pcm_format_width(runtime->format) == 8)
772 if (runtime->channels == 1)
780 delta = sis_rate_to_delta(runtime->rate);
802 struct snd_pcm_runtime *runtime = substream->runtime;
803 struct voice *voice = runtime->private_data;
812 if (snd_pcm_format_width(runtime->format) == 8)
814 if (!snd_pcm_format_signed(runtime->format))
816 if (runtime->channels == 1)
819 dma_addr = runtime->dma_addr;
820 leo = runtime->buffer_size - 1;
831 if (runtime->period_size != runtime->buffer_size)