Lines Matching refs:runtime

315 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_es1688_set_rate()  local
318 if (runtime->rate_num == clocks[0].num) in snd_es1688_set_rate()
319 bits = 256 - runtime->rate_den; in snd_es1688_set_rate()
321 bits = 128 - runtime->rate_den; in snd_es1688_set_rate()
323 divider = 256 - 7160000*20/(8*82*runtime->rate); in snd_es1688_set_rate()
376 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1688_playback_prepare() local
385 snd_es1688_write(chip, 0xa8, (snd_es1688_read(chip, 0xa8) & ~0x03) | (3 - runtime->channels)); in snd_es1688_playback_prepare()
387 if (runtime->channels == 1) { in snd_es1688_playback_prepare()
388 if (snd_pcm_format_width(runtime->format) == 8) { in snd_es1688_playback_prepare()
400 if (snd_pcm_format_width(runtime->format) == 8) { in snd_es1688_playback_prepare()
418 snd_dma_program(chip->dma8, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); in snd_es1688_playback_prepare()
437 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1688_capture_prepare() local
447 snd_es1688_write(chip, 0xa8, (snd_es1688_read(chip, 0xa8) & ~0x03) | (3 - runtime->channels)); in snd_es1688_capture_prepare()
449 if (runtime->channels == 1) { in snd_es1688_capture_prepare()
450 if (snd_pcm_format_width(runtime->format) == 8) { in snd_es1688_capture_prepare()
460 if (snd_pcm_format_width(runtime->format) == 8) { in snd_es1688_capture_prepare()
475 snd_dma_program(chip->dma8, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); in snd_es1688_capture_prepare()
511 return bytes_to_frames(substream->runtime, ptr); in snd_es1688_playback_pointer()
522 return bytes_to_frames(substream->runtime, ptr); in snd_es1688_capture_pointer()
572 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1688_playback_open() local
577 runtime->hw = snd_es1688_playback; in snd_es1688_playback_open()
578 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_es1688_playback_open()
586 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1688_capture_open() local
591 runtime->hw = snd_es1688_capture; in snd_es1688_capture_open()
592 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_es1688_capture_open()