Lines Matching full:asrc
3 // Freescale ASRC ALSA SoC Platform (DMA) driver
141 struct fsl_asrc *asrc = pair->asrc; in fsl_asrc_dma_hw_params() local
177 dma_params_fe->addr = asrc->paddr + asrc->get_fifo_addr(!dir, index); in fsl_asrc_dma_hw_params()
180 pair->dma_chan[!dir] = asrc->get_dma_channel(pair, !dir); in fsl_asrc_dma_hw_params()
226 if (!asrc->use_edma) { in fsl_asrc_dma_hw_params()
235 tmp_chan = asrc->get_dma_channel(pair, dir); in fsl_asrc_dma_hw_params()
258 width = snd_pcm_format_physical_width(asrc->asrc_format); in fsl_asrc_dma_hw_params()
290 config_be.src_addr = asrc->paddr + asrc->get_fifo_addr(OUT, index); in fsl_asrc_dma_hw_params()
293 config_be.dst_addr = asrc->paddr + asrc->get_fifo_addr(IN, index); in fsl_asrc_dma_hw_params()
337 struct fsl_asrc *asrc = dev_get_drvdata(dev); in fsl_asrc_dma_startup() local
351 pair = kzalloc(sizeof(*pair) + asrc->pair_priv_size, GFP_KERNEL); in fsl_asrc_dma_startup()
355 pair->asrc = asrc; in fsl_asrc_dma_startup()
364 ret = asrc->request_pair(1, pair); in fsl_asrc_dma_startup()
366 dev_err(dev, "failed to request asrc pair\n"); in fsl_asrc_dma_startup()
371 tmp_chan = asrc->get_dma_channel(pair, dir); in fsl_asrc_dma_startup()
397 asrc->release_pair(pair); in fsl_asrc_dma_startup()
411 struct fsl_asrc *asrc; in fsl_asrc_dma_shutdown() local
416 asrc = pair->asrc; in fsl_asrc_dma_shutdown()
418 if (asrc->pair[pair->index] == pair) in fsl_asrc_dma_shutdown()
419 asrc->pair[pair->index] = NULL; in fsl_asrc_dma_shutdown()