Lines Matching defs:runtime
403 struct snd_pcm_runtime *runtime = substream->runtime;
405 if (runtime->rate_num == new_clocks[0].num)
406 bits = 128 - runtime->rate_den;
408 bits = 256 - runtime->rate_den;
410 if (runtime->rate_num == old_clocks[0].num)
411 bits = 256 - runtime->rate_den;
413 bits = 128 - runtime->rate_den;
417 div0 = 256 - 7160000*20/(8*82*runtime->rate);
462 struct snd_pcm_runtime *runtime = substream->runtime;
475 ((runtime->channels == 1) ? 0x00 : 0x02) |
476 (snd_pcm_format_width(runtime->format) == 16 ? 0x01 : 0x00) |
477 (snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x04));
480 snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT);
559 struct snd_pcm_runtime *runtime = substream->runtime;
566 snd_es18xx_bits(chip, 0xA8, 0x03, runtime->channels == 1 ? 0x02 : 0x01);
581 snd_pcm_format_unsigned(runtime->format) ? 0x51 : 0x71);
583 ((runtime->channels == 1) ? 0x40 : 0x08) |
584 (snd_pcm_format_width(runtime->format) == 16 ? 0x04 : 0x00) |
585 (snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x20));
588 snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT);
625 struct snd_pcm_runtime *runtime = substream->runtime;
632 snd_es18xx_bits(chip, 0xA8, 0x03, runtime->channels == 1 ? 0x02 : 0x01);
643 snd_pcm_format_unsigned(runtime->format) ? 0x80 : 0x00);
645 snd_pcm_format_unsigned(runtime->format) ? 0x51 : 0x71);
647 (runtime->channels == 1 ? 0x40 : 0x08) |
648 (snd_pcm_format_width(runtime->format) == 16 ? 0x04 : 0x00) |
649 (snd_pcm_format_unsigned(runtime->format) ? 0x00 : 0x20));
652 snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT);
859 struct snd_pcm_runtime *runtime = substream->runtime;
865 chip->capture_a_substream->runtime->channels != 1)
876 substream->runtime->hw = snd_es18xx_playback;
877 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
884 struct snd_pcm_runtime *runtime = substream->runtime;
891 chip->playback_a_substream->runtime->channels != 1)
894 substream->runtime->hw = snd_es18xx_capture;
895 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,