Lines Matching refs:dma

240 		int dma, type = VORTEX_PCM_TYPE(substream->pcm);  in snd_vortex_pcm_hw_params()  local
243 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_params()
248 dma = in snd_vortex_pcm_hw_params()
253 if (dma < 0) { in snd_vortex_pcm_hw_params()
255 return dma; in snd_vortex_pcm_hw_params()
257 stream = substream->runtime->private_data = &chip->dma_adb[dma]; in snd_vortex_pcm_hw_params()
260 vortex_adbdma_setbuffers(chip, dma, in snd_vortex_pcm_hw_params()
277 stream->dma = substream->number; in snd_vortex_pcm_hw_params()
304 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_free()
313 vortex_wt_allocroute(chip, stream->dma, 0); in snd_vortex_pcm_hw_free()
328 int dma = stream->dma, fmt, dir; in snd_vortex_pcm_prepare() local
338 vortex_adbdma_setmode(chip, dma, 1, dir, fmt, in snd_vortex_pcm_prepare()
340 vortex_adbdma_setstartbuffer(chip, dma, 0); in snd_vortex_pcm_prepare()
342 vortex_adb_setsrc(chip, dma, runtime->rate, dir); in snd_vortex_pcm_prepare()
346 vortex_wtdma_setmode(chip, dma, 1, fmt, 0, 0); in snd_vortex_pcm_prepare()
348 vortex_wtdma_setstartbuffer(chip, dma, 0); in snd_vortex_pcm_prepare()
360 int dma = stream->dma; in snd_vortex_pcm_trigger() local
369 vortex_adbdma_resetup(chip, dma); in snd_vortex_pcm_trigger()
370 vortex_adbdma_startfifo(chip, dma); in snd_vortex_pcm_trigger()
374 dev_info(chip->card->dev, "wt start %d\n", dma); in snd_vortex_pcm_trigger()
375 vortex_wtdma_startfifo(chip, dma); in snd_vortex_pcm_trigger()
384 vortex_adbdma_stopfifo(chip, dma); in snd_vortex_pcm_trigger()
387 dev_info(chip->card->dev, "wt stop %d\n", dma); in snd_vortex_pcm_trigger()
388 vortex_wtdma_stopfifo(chip, dma); in snd_vortex_pcm_trigger()
395 vortex_adbdma_pausefifo(chip, dma); in snd_vortex_pcm_trigger()
398 vortex_wtdma_pausefifo(chip, dma); in snd_vortex_pcm_trigger()
404 vortex_adbdma_resumefifo(chip, dma); in snd_vortex_pcm_trigger()
407 vortex_wtdma_resumefifo(chip, dma); in snd_vortex_pcm_trigger()
423 int dma = stream->dma; in snd_vortex_pcm_pointer() local
428 current_ptr = vortex_adbdma_getlinearpos(chip, dma); in snd_vortex_pcm_pointer()
431 current_ptr = vortex_wtdma_getlinearpos(chip, dma); in snd_vortex_pcm_pointer()
577 switch (vortex->dma_adb[p->dma].nr_ch) { in snd_vortex_pcm_vol_put()
688 chip->pcm_vol[i].dma = -1; in snd_vortex_new_pcm()