Lines Matching defs:runtime

347 	struct snd_pcm_runtime *runtime = substream->runtime;
348 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
381 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;
426 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;
485 struct snd_pcm_runtime *runtime,
490 u32 delta = snd_ymfpci_calc_delta(runtime->rate);
491 u32 lpfQ = snd_ymfpci_calc_lpfQ(runtime->rate);
492 u32 lpfK = snd_ymfpci_calc_lpfK(runtime->rate);
501 if (runtime->channels == 1) {
518 format = runtime->channels == 2 ? 0x00010000 : 0;
519 if (snd_pcm_format_width(runtime->format) == 8)
522 runtime->rate == 44100 && runtime->channels == 2 &&
534 if (runtime->channels == 2 && (voiceidx & 1) != 0)
541 bank->base = cpu_to_le32(runtime->dma_addr);
628 struct snd_pcm_runtime *runtime = substream->runtime;
629 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
641 struct snd_pcm_runtime *runtime = substream->runtime;
644 if (runtime->private_data == NULL)
646 ypcm = runtime->private_data;
664 struct snd_pcm_runtime *runtime = substream->runtime;
665 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
669 ypcm->period_size = runtime->period_size;
670 ypcm->buffer_size = runtime->buffer_size;
673 for (nvoice = 0; nvoice < runtime->channels; nvoice++)
674 snd_ymfpci_pcm_init_voice(ypcm, nvoice, runtime,
697 struct snd_pcm_runtime *runtime = substream->runtime;
698 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
703 ypcm->period_size = runtime->period_size;
704 ypcm->buffer_size = runtime->buffer_size;
708 rate = ((48000 * 4096) / runtime->rate) - 1;
710 if (runtime->channels == 2) {
714 if (snd_pcm_format_width(runtime->format) == 8)
730 bank->base = cpu_to_le32(runtime->dma_addr);
741 struct snd_pcm_runtime *runtime = substream->runtime;
742 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
753 struct snd_pcm_runtime *runtime = substream->runtime;
754 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
871 static void snd_ymfpci_pcm_free_substream(struct snd_pcm_runtime *runtime)
873 kfree(runtime->private_data);
879 struct snd_pcm_runtime *runtime = substream->runtime;
883 runtime->hw = snd_ymfpci_playback;
885 err = snd_pcm_hw_constraint_minmax(runtime,
890 err = snd_pcm_hw_rule_noresample(runtime, 48000);
900 runtime->private_data = ypcm;
901 runtime->private_free = snd_ymfpci_pcm_free_substream;
933 struct snd_pcm_runtime *runtime = substream->runtime;
940 ypcm = runtime->private_data;
956 struct snd_pcm_runtime *runtime = substream->runtime;
963 ypcm = runtime->private_data;
985 struct snd_pcm_runtime *runtime = substream->runtime;
992 ypcm = runtime->private_data;
1007 struct snd_pcm_runtime *runtime = substream->runtime;
1011 runtime->hw = snd_ymfpci_capture;
1013 err = snd_pcm_hw_constraint_minmax(runtime,
1018 err = snd_pcm_hw_rule_noresample(runtime, 48000);
1030 runtime->private_data = ypcm;
1031 runtime->private_free = snd_ymfpci_pcm_free_substream;
1054 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;
1098 struct snd_pcm_runtime *runtime = substream->runtime;
1099 struct snd_ymfpci_pcm *ypcm = runtime->private_data;
1747 if (substream->runtime && substream->runtime->private_data) {
1748 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;