Lines Matching refs:runtime
465 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1938_rate_set() local
466 if (runtime->rate_num == clocks[0].num) in snd_es1938_rate_set()
467 bits = 128 - runtime->rate_den; in snd_es1938_rate_set()
469 bits = 256 - runtime->rate_den; in snd_es1938_rate_set()
472 div0 = 256 - 7160000*20/(8*82*runtime->rate); in snd_es1938_rate_set()
626 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1938_capture_prepare() local
632 chip->dma1_start = runtime->dma_addr; in snd_es1938_capture_prepare()
634 mono = (runtime->channels > 1) ? 0 : 1; in snd_es1938_capture_prepare()
635 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1; in snd_es1938_capture_prepare()
636 u = snd_pcm_format_unsigned(runtime->format); in snd_es1938_capture_prepare()
674 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1938_playback1_prepare() local
680 chip->dma2_start = runtime->dma_addr; in snd_es1938_playback1_prepare()
682 mono = (runtime->channels > 1) ? 0 : 1; in snd_es1938_playback1_prepare()
683 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1; in snd_es1938_playback1_prepare()
684 u = snd_pcm_format_unsigned(runtime->format); in snd_es1938_playback1_prepare()
711 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1938_playback2_prepare() local
717 chip->dma1_start = runtime->dma_addr; in snd_es1938_playback2_prepare()
719 mono = (runtime->channels > 1) ? 0 : 1; in snd_es1938_playback2_prepare()
720 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1; in snd_es1938_playback2_prepare()
721 u = snd_pcm_format_unsigned(runtime->format); in snd_es1938_playback2_prepare()
847 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1938_capture_copy() local
854 if (copy_to_user(dst, runtime->dma_area + pos + 1, count)) in snd_es1938_capture_copy()
857 if (copy_to_user(dst, runtime->dma_area + pos + 1, count - 1)) in snd_es1938_capture_copy()
859 if (put_user(runtime->dma_area[0], ((unsigned char __user *)dst) + count - 1)) in snd_es1938_capture_copy()
932 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1938_capture_open() local
937 runtime->hw = snd_es1938_capture; in snd_es1938_capture_open()
938 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_es1938_capture_open()
940 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, 0xff00); in snd_es1938_capture_open()
947 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1938_playback_open() local
962 runtime->hw = snd_es1938_playback; in snd_es1938_playback_open()
963 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_es1938_playback_open()
965 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, 0xff00); in snd_es1938_playback_open()