Lines Matching defs:runtime

447 	struct snd_pcm_runtime *runtime = substream->runtime;
448 if (runtime->rate_num == clocks[0].num)
449 bits = 128 - runtime->rate_den;
451 bits = 256 - runtime->rate_den;
454 div0 = 256 - 7160000*20/(8*82*runtime->rate);
608 struct snd_pcm_runtime *runtime = substream->runtime;
614 chip->dma1_start = runtime->dma_addr;
616 mono = (runtime->channels > 1) ? 0 : 1;
617 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
618 u = snd_pcm_format_unsigned(runtime->format);
656 struct snd_pcm_runtime *runtime = substream->runtime;
662 chip->dma2_start = runtime->dma_addr;
664 mono = (runtime->channels > 1) ? 0 : 1;
665 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
666 u = snd_pcm_format_unsigned(runtime->format);
693 struct snd_pcm_runtime *runtime = substream->runtime;
699 chip->dma1_start = runtime->dma_addr;
701 mono = (runtime->channels > 1) ? 0 : 1;
702 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
703 u = snd_pcm_format_unsigned(runtime->format);
827 struct snd_pcm_runtime *runtime = substream->runtime;
833 if (copy_to_iter(runtime->dma_area + pos + 1, count, dst) != count)
836 if (copy_to_iter(runtime->dma_area + pos + 1, count - 1, dst) != count - 1)
838 if (copy_to_iter(runtime->dma_area, 1, dst) != 1)
892 struct snd_pcm_runtime *runtime = substream->runtime;
897 runtime->hw = snd_es1938_capture;
898 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
900 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, 0xff00);
907 struct snd_pcm_runtime *runtime = substream->runtime;
922 runtime->hw = snd_es1938_playback;
923 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
925 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, 0xff00);