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 s->runtime->status->state = SNDRV_PCM_STATE_SETUP;
722 struct snd_pcm_runtime *runtime;
738 struct snd_card_asihpi_pcm *ds = s->runtime->private_data;
739 runtime = s->runtime;
754 runtime->delay = on_card_bytes;
804 (unsigned long)frames_to_bytes(runtime,
805 runtime->status->hw_ptr),
806 (unsigned long)frames_to_bytes(runtime,
807 runtime->control->appl_ptr)
830 struct snd_card_asihpi_pcm *ds = s->runtime->private_data;
848 char *pd = &s->runtime->dma_area[buf_ofs];
867 pd = s->runtime->dma_area;
886 pd = s->runtime->dma_area;
921 struct snd_pcm_runtime *runtime = substream->runtime;
922 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
936 struct snd_pcm_runtime *runtime = substream->runtime;
937 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
942 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes);
982 struct snd_pcm_runtime *runtime = substream->runtime;
1009 runtime->private_data = dpcm;
1010 runtime->private_free = snd_card_asihpi_runtime_free;
1051 runtime->hw = snd_card_asihpi_playback;
1054 err = snd_pcm_hw_constraint_pow2(runtime, 0,
1059 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
1062 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
1072 struct snd_pcm_runtime *runtime = substream->runtime;
1073 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1095 struct snd_pcm_runtime *runtime = substream->runtime;
1096 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1105 return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes);
1110 struct snd_pcm_runtime *runtime = substream->runtime;
1111 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1157 struct snd_pcm_runtime *runtime = substream->runtime;
1182 runtime->private_data = dpcm;
1183 runtime->private_free = snd_card_asihpi_runtime_free;
1214 runtime->hw = snd_card_asihpi_capture;
1217 err = snd_pcm_hw_constraint_pow2(runtime, 0,
1222 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
1224 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
1234 struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data;