Lines Matching defs:runtime

449 	struct snd_pcm_runtime *runtime = substream->runtime;
450 if (runtime->rate_num == clocks[0].num)
451 bits = 128 - runtime->rate_den;
453 bits = 256 - runtime->rate_den;
456 div0 = 256 - 7160000*20/(8*82*runtime->rate);
610 struct snd_pcm_runtime *runtime = substream->runtime;
616 chip->dma1_start = runtime->dma_addr;
618 mono = (runtime->channels > 1) ? 0 : 1;
619 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
620 u = snd_pcm_format_unsigned(runtime->format);
658 struct snd_pcm_runtime *runtime = substream->runtime;
664 chip->dma2_start = runtime->dma_addr;
666 mono = (runtime->channels > 1) ? 0 : 1;
667 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
668 u = snd_pcm_format_unsigned(runtime->format);
695 struct snd_pcm_runtime *runtime = substream->runtime;
701 chip->dma1_start = runtime->dma_addr;
703 mono = (runtime->channels > 1) ? 0 : 1;
704 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
705 u = snd_pcm_format_unsigned(runtime->format);
829 struct snd_pcm_runtime *runtime = substream->runtime;
835 if (copy_to_iter(runtime->dma_area + pos + 1, count, dst) != count)
838 if (copy_to_iter(runtime->dma_area + pos + 1, count - 1, dst) != count - 1)
840 if (copy_to_iter(runtime->dma_area, 1, dst) != 1)
894 struct snd_pcm_runtime *runtime = substream->runtime;
899 runtime->hw = snd_es1938_capture;
900 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
902 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, 0xff00);
909 struct snd_pcm_runtime *runtime = substream->runtime;
924 runtime->hw = snd_es1938_playback;
925 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
927 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, 0xff00);