-
- Downloads
ASoC: dmaengine-pcm: Make requesting the DMA channel at PCM open optional
Refactor the dmaengine PCM library to allow the DMA channel to be requested before opening a PCM substream. snd_dmaengine_pcm_open() now expects a DMA channel instead of a filter function and filter parameter as its parameters. snd_dmaengine_pcm_close() is updated to not release the DMA channel. This allows a dmaengine based PCM driver to request its channels before the substream is opened. The patch also introduces two new functions, snd_dmaengine_pcm_open_request_chan() and snd_dmaengine_pcm_close_release_chan(), which have the same signature and behaviour of the old snd_dmaengine_pcm_{open,close}() and internally use the new variants of these functions. All users of snd_dmaengine_pcm_{open,close}() are updated to use snd_dmaengine_pcm_open_request_chan() and snd_dmaengine_pcm_close_release_chan(). Signed-off-by:Lars-Peter Clausen <lars@metafoo.de> Tested-by:
Stephen Warren <swarren@nvidia.com> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com>
Showing
- include/sound/dmaengine_pcm.h 5 additions, 1 deletioninclude/sound/dmaengine_pcm.h
- sound/soc/atmel/atmel-pcm-dma.c 3 additions, 3 deletionssound/soc/atmel/atmel-pcm-dma.c
- sound/soc/cirrus/ep93xx-pcm.c 3 additions, 2 deletionssound/soc/cirrus/ep93xx-pcm.c
- sound/soc/fsl/imx-pcm-dma.c 1 addition, 1 deletionsound/soc/fsl/imx-pcm-dma.c
- sound/soc/mxs/mxs-pcm.c 2 additions, 2 deletionssound/soc/mxs/mxs-pcm.c
- sound/soc/omap/omap-pcm.c 4 additions, 3 deletionssound/soc/omap/omap-pcm.c
- sound/soc/pxa/mmp-pcm.c 3 additions, 2 deletionssound/soc/pxa/mmp-pcm.c
- sound/soc/soc-dmaengine-pcm.c 49 additions, 23 deletionssound/soc/soc-dmaengine-pcm.c
- sound/soc/spear/spear_pcm.c 3 additions, 2 deletionssound/soc/spear/spear_pcm.c
- sound/soc/tegra/tegra_pcm.c 2 additions, 2 deletionssound/soc/tegra/tegra_pcm.c
- sound/soc/ux500/ux500_pcm.c 3 additions, 3 deletionssound/soc/ux500/ux500_pcm.c
Loading
Please register or sign in to comment