Lines Matching refs:runtime
454 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_pcm_hw_params() local
455 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_hw_params()
486 params_buffer_bytes(params), runtime->dma_addr); in snd_card_asihpi_pcm_hw_params()
491 (unsigned long)runtime->dma_addr); in snd_card_asihpi_pcm_hw_params()
518 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_hw_free() local
519 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_hw_free()
527 static void snd_card_asihpi_runtime_free(struct snd_pcm_runtime *runtime) in snd_card_asihpi_runtime_free() argument
529 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_runtime_free()
536 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_pcm_timer_start() local
537 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_timer_start()
549 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_pcm_timer_stop() local
550 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_timer_stop()
563 dpcm = (struct snd_card_asihpi_pcm *)substream->runtime->private_data; in snd_card_asihpi_pcm_int_start()
583 dpcm = (struct snd_card_asihpi_pcm *)substream->runtime->private_data; in snd_card_asihpi_pcm_int_stop()
601 struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data; in snd_card_asihpi_trigger()
613 struct snd_pcm_runtime *runtime = s->runtime; in snd_card_asihpi_trigger() local
614 struct snd_card_asihpi_pcm *ds = runtime->private_data; in snd_card_asihpi_trigger()
635 &runtime->dma_area[0], in snd_card_asihpi_trigger()
674 s->runtime->status->state = SNDRV_PCM_STATE_SETUP; in snd_card_asihpi_trigger()
761 struct snd_pcm_runtime *runtime; in snd_card_asihpi_timer_function() local
777 struct snd_card_asihpi_pcm *ds = s->runtime->private_data; in snd_card_asihpi_timer_function()
778 runtime = s->runtime; in snd_card_asihpi_timer_function()
793 runtime->delay = on_card_bytes; in snd_card_asihpi_timer_function()
843 (unsigned long)frames_to_bytes(runtime, in snd_card_asihpi_timer_function()
844 runtime->status->hw_ptr), in snd_card_asihpi_timer_function()
845 (unsigned long)frames_to_bytes(runtime, in snd_card_asihpi_timer_function()
846 runtime->control->appl_ptr) in snd_card_asihpi_timer_function()
869 struct snd_card_asihpi_pcm *ds = s->runtime->private_data; in snd_card_asihpi_timer_function()
870 runtime = s->runtime; in snd_card_asihpi_timer_function()
888 char *pd = &s->runtime->dma_area[buf_ofs]; in snd_card_asihpi_timer_function()
907 pd = s->runtime->dma_area; in snd_card_asihpi_timer_function()
926 pd = s->runtime->dma_area; in snd_card_asihpi_timer_function()
980 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_playback_prepare() local
981 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_playback_prepare()
995 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_playback_pointer() local
996 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_playback_pointer()
1001 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_playback_pointer()
1041 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_playback_open() local
1069 runtime->private_data = dpcm; in snd_card_asihpi_playback_open()
1070 runtime->private_free = snd_card_asihpi_runtime_free; in snd_card_asihpi_playback_open()
1111 runtime->hw = snd_card_asihpi_playback; in snd_card_asihpi_playback_open()
1114 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_card_asihpi_playback_open()
1119 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, in snd_card_asihpi_playback_open()
1122 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, in snd_card_asihpi_playback_open()
1132 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_playback_close() local
1133 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_playback_close()
1156 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_capture_pointer() local
1157 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_capture_pointer()
1166 return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_capture_pointer()
1177 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_capture_prepare() local
1178 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_capture_prepare()
1224 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_capture_open() local
1250 runtime->private_data = dpcm; in snd_card_asihpi_capture_open()
1251 runtime->private_free = snd_card_asihpi_runtime_free; in snd_card_asihpi_capture_open()
1282 runtime->hw = snd_card_asihpi_capture; in snd_card_asihpi_capture_open()
1285 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_card_asihpi_capture_open()
1290 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, in snd_card_asihpi_capture_open()
1292 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, in snd_card_asihpi_capture_open()
1302 struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data; in snd_card_asihpi_capture_close()