Lines Matching defs:runtime
450 struct snd_pcm_runtime *runtime = substream->runtime;
451 if (runtime->rate_num == clocks[0].num)
452 bits = 128 - runtime->rate_den;
454 bits = 256 - runtime->rate_den;
457 div0 = 256 - 7160000*20/(8*82*runtime->rate);
611 struct snd_pcm_runtime *runtime = substream->runtime;
617 chip->dma1_start = runtime->dma_addr;
619 mono = (runtime->channels > 1) ? 0 : 1;
620 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
621 u = snd_pcm_format_unsigned(runtime->format);
659 struct snd_pcm_runtime *runtime = substream->runtime;
665 chip->dma2_start = runtime->dma_addr;
667 mono = (runtime->channels > 1) ? 0 : 1;
668 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
669 u = snd_pcm_format_unsigned(runtime->format);
696 struct snd_pcm_runtime *runtime = substream->runtime;
702 chip->dma1_start = runtime->dma_addr;
704 mono = (runtime->channels > 1) ? 0 : 1;
705 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1;
706 u = snd_pcm_format_unsigned(runtime->format);
830 struct snd_pcm_runtime *runtime = substream->runtime;
836 if (copy_to_user(dst, runtime->dma_area + pos + 1, count))
839 if (copy_to_user(dst, runtime->dma_area + pos + 1, count - 1))
841 if (put_user(runtime->dma_area[0],
852 struct snd_pcm_runtime *runtime = substream->runtime;
858 memcpy(dst, runtime->dma_area + pos + 1, count);
860 memcpy(dst, runtime->dma_area + pos + 1, count - 1);
861 runtime->dma_area[0] = *((unsigned char *)dst + count - 1);
914 struct snd_pcm_runtime *runtime = substream->runtime;
919 runtime->hw = snd_es1938_capture;
920 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
922 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, 0xff00);
929 struct snd_pcm_runtime *runtime = substream->runtime;
944 runtime->hw = snd_es1938_playback;
945 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
947 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, 0xff00);