Lines Matching refs:runtime

451 	struct snd_pcm_runtime *runtime = substream->runtime;  in sis_alloc_timing_voice()  local
452 struct voice *voice = runtime->private_data; in sis_alloc_timing_voice()
486 struct snd_pcm_runtime *runtime = substream->runtime; in sis_playback_open() local
494 runtime->private_data = voice; in sis_playback_open()
495 runtime->hw = sis_playback_hw_info; in sis_playback_open()
496 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, in sis_playback_open()
498 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, in sis_playback_open()
507 struct snd_pcm_runtime *runtime = substream->runtime; in sis_substream_close() local
508 struct voice *voice = runtime->private_data; in sis_substream_close()
528 struct snd_pcm_runtime *runtime = substream->runtime; in sis_pcm_playback_prepare() local
529 struct voice *voice = runtime->private_data; in sis_pcm_playback_prepare()
539 if (snd_pcm_format_width(runtime->format) == 8) in sis_pcm_playback_prepare()
541 if (!snd_pcm_format_signed(runtime->format)) in sis_pcm_playback_prepare()
543 if (runtime->channels == 1) in sis_pcm_playback_prepare()
549 dma_addr = runtime->dma_addr; in sis_pcm_playback_prepare()
550 leo = runtime->buffer_size - 1; in sis_pcm_playback_prepare()
554 if (runtime->period_size == (runtime->buffer_size / 2)) { in sis_pcm_playback_prepare()
556 } else if (runtime->period_size != runtime->buffer_size) { in sis_pcm_playback_prepare()
558 voice->sso = runtime->period_size - 1; in sis_pcm_playback_prepare()
559 voice->period_size = runtime->period_size; in sis_pcm_playback_prepare()
560 voice->buffer_size = runtime->buffer_size; in sis_pcm_playback_prepare()
564 sso_eso |= (runtime->period_size - 1) << 16; in sis_pcm_playback_prepare()
567 delta = sis_rate_to_delta(runtime->rate); in sis_pcm_playback_prepare()
628 voice = s->runtime->private_data; in sis_pcm_trigger()
663 struct snd_pcm_runtime *runtime = substream->runtime; in sis_pcm_pointer() local
664 struct voice *voice = runtime->private_data; in sis_pcm_pointer()
675 struct snd_pcm_runtime *runtime = substream->runtime; in sis_capture_open() local
693 runtime->private_data = voice; in sis_capture_open()
694 runtime->hw = sis_capture_hw_info; in sis_capture_open()
695 runtime->hw.rates = sis->ac97[0]->rates[AC97_RATES_ADC]; in sis_capture_open()
696 snd_pcm_limit_hw_rates(runtime); in sis_capture_open()
697 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, in sis_capture_open()
699 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, in sis_capture_open()
731 struct snd_pcm_runtime *runtime = substream->runtime; in sis_prepare_timing_voice() local
742 buffer_size = 4096 / runtime->channels; in sis_prepare_timing_voice()
743 buffer_size /= snd_pcm_format_size(runtime->format, 1); in sis_prepare_timing_voice()
758 vperiod = runtime->period_size + 12; in sis_prepare_timing_voice()
777 period_size = runtime->period_size; in sis_prepare_timing_voice()
787 timing->sync_cso = runtime->period_size; in sis_prepare_timing_voice()
788 timing->sync_period_size = runtime->period_size; in sis_prepare_timing_voice()
789 timing->sync_buffer_size = runtime->buffer_size; in sis_prepare_timing_voice()
800 if (snd_pcm_format_width(runtime->format) == 8) in sis_prepare_timing_voice()
802 if (runtime->channels == 1) in sis_prepare_timing_voice()
810 delta = sis_rate_to_delta(runtime->rate); in sis_prepare_timing_voice()
832 struct snd_pcm_runtime *runtime = substream->runtime; in sis_pcm_capture_prepare() local
833 struct voice *voice = runtime->private_data; in sis_pcm_capture_prepare()
842 if (snd_pcm_format_width(runtime->format) == 8) in sis_pcm_capture_prepare()
844 if (!snd_pcm_format_signed(runtime->format)) in sis_pcm_capture_prepare()
846 if (runtime->channels == 1) in sis_pcm_capture_prepare()
849 dma_addr = runtime->dma_addr; in sis_pcm_capture_prepare()
850 leo = runtime->buffer_size - 1; in sis_pcm_capture_prepare()
861 if (runtime->period_size != runtime->buffer_size) in sis_pcm_capture_prepare()