ASoC: omap: Introduce the generic_dmaengine_pcm based sdma-pcm
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 7 May 2018 08:49:54 +0000 (11:49 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 9 May 2018 09:22:00 +0000 (18:22 +0900)
commitdde637f2daf19daf7e0d551ef47bec6819504910
treefdacb451264a11f16ef83b359c35bd7ea1a4b01b
parente5ba319882d78030b054dee4eeaf758340b2756f
ASoC: omap: Introduce the generic_dmaengine_pcm based sdma-pcm

With the generic dmaengine_pcm support the omap-cpm can be replaced with a
much smaller wrapper.

CPU DAI drivers can use the:
int sdma_pcm_platform_register(struct device *dev,
       char *txdmachan, char *rxdmachan);

To register the platform driver, txdmachan/rxdmachan is only needed to be
provided if the DMA channel names are not standard tx/rx, like in case of
McPDM, or the DAI is only capable of one audio direction (DMIC, HDMI).

This patch only introduces the source file and changes to the
Kconfig/Makefile, but does not change any of the DAI drivers to use it.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/omap/Kconfig
sound/soc/omap/Makefile
sound/soc/omap/sdma-pcm.c [new file with mode: 0644]
sound/soc/omap/sdma-pcm.h [new file with mode: 0644]