Lines Matching refs:runtime
888 struct snd_pcm_runtime *runtime) in snd_es1968_calc_bob_rate() argument
891 int freq = runtime->rate * 4; in snd_es1968_calc_bob_rate()
1004 struct snd_pcm_runtime *runtime) in snd_es1968_playback_setup() argument
1087 freq = runtime->rate; in snd_es1968_playback_setup()
1152 struct snd_pcm_runtime *runtime) in snd_es1968_capture_setup() argument
1190 freq = runtime->rate; in snd_es1968_capture_setup()
1223 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1968_pcm_prepare() local
1224 struct esschan *es = runtime->private_data; in snd_es1968_pcm_prepare()
1231 if (snd_pcm_format_width(runtime->format) == 16) in snd_es1968_pcm_prepare()
1233 if (runtime->channels > 1) { in snd_es1968_pcm_prepare()
1238 es->bob_freq = snd_es1968_calc_bob_rate(chip, es, runtime); in snd_es1968_pcm_prepare()
1242 snd_es1968_playback_setup(chip, es, runtime); in snd_es1968_pcm_prepare()
1245 snd_es1968_capture_setup(chip, es, runtime); in snd_es1968_pcm_prepare()
1255 struct esschan *es = substream->runtime->private_data; in snd_es1968_pcm_trigger()
1285 struct esschan *es = substream->runtime->private_data; in snd_es1968_pcm_pointer()
1290 return bytes_to_frames(substream->runtime, ptr % es->dma_size); in snd_es1968_pcm_pointer()
1480 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1968_hw_params() local
1481 struct esschan *chan = runtime->private_data; in snd_es1968_hw_params()
1486 runtime->dma_bytes = size; in snd_es1968_hw_params()
1505 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1968_hw_free() local
1508 if (runtime->private_data == NULL) in snd_es1968_hw_free()
1510 chan = runtime->private_data; in snd_es1968_hw_free()
1552 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1968_playback_open() local
1575 runtime->private_data = es; in snd_es1968_playback_open()
1576 runtime->hw = snd_es1968_playback; in snd_es1968_playback_open()
1577 runtime->hw.buffer_bytes_max = runtime->hw.period_bytes_max = in snd_es1968_playback_open()
1589 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1968_capture_open() local
1631 runtime->private_data = es; in snd_es1968_capture_open()
1632 runtime->hw = snd_es1968_capture; in snd_es1968_capture_open()
1633 runtime->hw.buffer_bytes_max = runtime->hw.period_bytes_max = in snd_es1968_capture_open()
1635 snd_pcm_hw_constraint_pow2(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES); in snd_es1968_capture_open()
1649 if (substream->runtime->private_data == NULL) in snd_es1968_playback_close()
1651 es = substream->runtime->private_data; in snd_es1968_playback_close()
1666 if (substream->runtime->private_data == NULL) in snd_es1968_capture_close()
1668 es = substream->runtime->private_data; in snd_es1968_capture_close()
2426 snd_es1968_playback_setup(chip, es, es->substream->runtime); in es1968_resume()
2429 snd_es1968_capture_setup(chip, es, es->substream->runtime); in es1968_resume()