Lines Matching defs:runtime
298 struct snd_pcm_runtime *runtime = substream->runtime;
301 if (runtime->rate_num == clocks[0].num)
302 bits = 256 - runtime->rate_den;
304 bits = 128 - runtime->rate_den;
306 divider = 256 - 7160000*20/(8*82*runtime->rate);
342 struct snd_pcm_runtime *runtime = substream->runtime;
351 snd_es1688_write(chip, 0xa8, (snd_es1688_read(chip, 0xa8) & ~0x03) | (3 - runtime->channels));
353 if (runtime->channels == 1) {
354 if (snd_pcm_format_width(runtime->format) == 8) {
366 if (snd_pcm_format_width(runtime->format) == 8) {
384 snd_dma_program(chip->dma8, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT);
403 struct snd_pcm_runtime *runtime = substream->runtime;
413 snd_es1688_write(chip, 0xa8, (snd_es1688_read(chip, 0xa8) & ~0x03) | (3 - runtime->channels));
415 if (runtime->channels == 1) {
416 if (snd_pcm_format_width(runtime->format) == 8) {
426 if (snd_pcm_format_width(runtime->format) == 8) {
441 snd_dma_program(chip->dma8, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT);
477 return bytes_to_frames(substream->runtime, ptr);
488 return bytes_to_frames(substream->runtime, ptr);
538 struct snd_pcm_runtime *runtime = substream->runtime;
543 runtime->hw = snd_es1688_playback;
544 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
552 struct snd_pcm_runtime *runtime = substream->runtime;
557 runtime->hw = snd_es1688_capture;
558 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,