Lines Matching defs:runtime
342 struct snd_pcm_runtime *runtime = substream->runtime;
343 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
376 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;
421 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;
480 struct snd_pcm_runtime *runtime,
485 u32 delta = snd_ymfpci_calc_delta(runtime->rate);
486 u32 lpfQ = snd_ymfpci_calc_lpfQ(runtime->rate);
487 u32 lpfK = snd_ymfpci_calc_lpfK(runtime->rate);
496 if (runtime->channels == 1) {
513 format = runtime->channels == 2 ? 0x00010000 : 0;
514 if (snd_pcm_format_width(runtime->format) == 8)
517 runtime->rate == 44100 && runtime->channels == 2 &&
529 if (runtime->channels == 2 && (voiceidx & 1) != 0)
536 bank->base = cpu_to_le32(runtime->dma_addr);
623 struct snd_pcm_runtime *runtime = substream->runtime;
624 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
636 struct snd_pcm_runtime *runtime = substream->runtime;
639 if (runtime->private_data == NULL)
641 ypcm = runtime->private_data;
659 struct snd_pcm_runtime *runtime = substream->runtime;
660 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
664 ypcm->period_size = runtime->period_size;
665 ypcm->buffer_size = runtime->buffer_size;
668 for (nvoice = 0; nvoice < runtime->channels; nvoice++)
669 snd_ymfpci_pcm_init_voice(ypcm, nvoice, runtime,
692 struct snd_pcm_runtime *runtime = substream->runtime;
693 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
698 ypcm->period_size = runtime->period_size;
699 ypcm->buffer_size = runtime->buffer_size;
703 rate = ((48000 * 4096) / runtime->rate) - 1;
705 if (runtime->channels == 2) {
709 if (snd_pcm_format_width(runtime->format) == 8)
725 bank->base = cpu_to_le32(runtime->dma_addr);
736 struct snd_pcm_runtime *runtime = substream->runtime;
737 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
748 struct snd_pcm_runtime *runtime = substream->runtime;
749 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
866 static void snd_ymfpci_pcm_free_substream(struct snd_pcm_runtime *runtime)
868 kfree(runtime->private_data);
874 struct snd_pcm_runtime *runtime = substream->runtime;
878 runtime->hw = snd_ymfpci_playback;
880 err = snd_pcm_hw_constraint_minmax(runtime,
885 err = snd_pcm_hw_rule_noresample(runtime, 48000);
895 runtime->private_data = ypcm;
896 runtime->private_free = snd_ymfpci_pcm_free_substream;
928 struct snd_pcm_runtime *runtime = substream->runtime;
935 ypcm = runtime->private_data;
951 struct snd_pcm_runtime *runtime = substream->runtime;
958 ypcm = runtime->private_data;
980 struct snd_pcm_runtime *runtime = substream->runtime;
987 ypcm = runtime->private_data;
1002 struct snd_pcm_runtime *runtime = substream->runtime;
1006 runtime->hw = snd_ymfpci_capture;
1008 err = snd_pcm_hw_constraint_minmax(runtime,
1013 err = snd_pcm_hw_rule_noresample(runtime, 48000);
1025 runtime->private_data = ypcm;
1026 runtime->private_free = snd_ymfpci_pcm_free_substream;
1049 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;
1093 struct snd_pcm_runtime *runtime = substream->runtime;
1094 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
1742 if (substream->runtime && substream->runtime->private_data) {
1743 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;