Lines Matching defs:runtime

46  * Must set snd module debug parameter to 3 to enable at runtime.
433 struct snd_pcm_runtime *runtime = substream->runtime;
434 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
462 params_buffer_bytes(params), runtime->dma_addr);
467 (unsigned long)runtime->dma_addr);
494 struct snd_pcm_runtime *runtime = substream->runtime;
495 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
502 static void snd_card_asihpi_runtime_free(struct snd_pcm_runtime *runtime)
504 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
511 struct snd_pcm_runtime *runtime = substream->runtime;
512 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
524 struct snd_pcm_runtime *runtime = substream->runtime;
525 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
536 dpcm = (struct snd_card_asihpi_pcm *)substream->runtime->private_data;
562 struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data;
574 struct snd_pcm_runtime *runtime = s->runtime;
575 struct snd_card_asihpi_pcm *ds = runtime->private_data;
596 &runtime->dma_area[0],
635 __snd_pcm_set_state(s->runtime, SNDRV_PCM_STATE_SETUP);
722 struct snd_pcm_runtime *runtime;
737 struct snd_card_asihpi_pcm *ds = s->runtime->private_data;
738 runtime = s->runtime;
753 runtime->delay = on_card_bytes;
803 (unsigned long)frames_to_bytes(runtime,
804 runtime->status->hw_ptr),
805 (unsigned long)frames_to_bytes(runtime,
806 runtime->control->appl_ptr)
828 struct snd_card_asihpi_pcm *ds = s->runtime->private_data;
846 char *pd = &s->runtime->dma_area[buf_ofs];
865 pd = s->runtime->dma_area;
884 pd = s->runtime->dma_area;
919 struct snd_pcm_runtime *runtime = substream->runtime;
920 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
934 struct snd_pcm_runtime *runtime = substream->runtime;
935 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
940 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes);
980 struct snd_pcm_runtime *runtime = substream->runtime;
1007 runtime->private_data = dpcm;
1008 runtime->private_free = snd_card_asihpi_runtime_free;
1049 runtime->hw = snd_card_asihpi_playback;
1052 err = snd_pcm_hw_constraint_pow2(runtime, 0,
1057 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
1060 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
1070 struct snd_pcm_runtime *runtime = substream->runtime;
1071 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1093 struct snd_pcm_runtime *runtime = substream->runtime;
1094 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1103 return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes);
1108 struct snd_pcm_runtime *runtime = substream->runtime;
1109 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1155 struct snd_pcm_runtime *runtime = substream->runtime;
1180 runtime->private_data = dpcm;
1181 runtime->private_free = snd_card_asihpi_runtime_free;
1212 runtime->hw = snd_card_asihpi_capture;
1215 err = snd_pcm_hw_constraint_pow2(runtime, 0,
1220 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
1222 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
1232 struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data;