Lines Matching defs:runtime

400 	struct snd_pcm_runtime *runtime = substream->runtime;
402 if (runtime->rate_num == new_clocks[0].num)
403 bits = 128 - runtime->rate_den;
405 bits = 256 - runtime->rate_den;
407 if (runtime->rate_num == old_clocks[0].num)
408 bits = 256 - runtime->rate_den;
410 bits = 128 - runtime->rate_den;
414 div0 = 256 - 7160000*20/(8*82*runtime->rate);
459 struct snd_pcm_runtime *runtime = substream->runtime;
472 ((runtime->channels == 1) ? 0x00 : 0x02) |
473 (snd_pcm_format_width(runtime->format) == 16 ? 0x01 : 0x00) |
474 (snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x04));
477 snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT);
556 struct snd_pcm_runtime *runtime = substream->runtime;
563 snd_es18xx_bits(chip, 0xA8, 0x03, runtime->channels == 1 ? 0x02 : 0x01);
578 snd_pcm_format_unsigned(runtime->format) ? 0x51 : 0x71);
580 ((runtime->channels == 1) ? 0x40 : 0x08) |
581 (snd_pcm_format_width(runtime->format) == 16 ? 0x04 : 0x00) |
582 (snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x20));
585 snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT);
622 struct snd_pcm_runtime *runtime = substream->runtime;
629 snd_es18xx_bits(chip, 0xA8, 0x03, runtime->channels == 1 ? 0x02 : 0x01);
640 snd_pcm_format_unsigned(runtime->format) ? 0x80 : 0x00);
642 snd_pcm_format_unsigned(runtime->format) ? 0x51 : 0x71);
644 (runtime->channels == 1 ? 0x40 : 0x08) |
645 (snd_pcm_format_width(runtime->format) == 16 ? 0x04 : 0x00) |
646 (snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x20));
649 snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT);
856 struct snd_pcm_runtime *runtime = substream->runtime;
862 chip->capture_a_substream->runtime->channels != 1)
873 substream->runtime->hw = snd_es18xx_playback;
874 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
881 struct snd_pcm_runtime *runtime = substream->runtime;
888 chip->playback_a_substream->runtime->channels != 1)
891 substream->runtime->hw = snd_es18xx_capture;
892 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,