ASoC: dmaengine_pcm: Add support for compat platforms
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 15 Apr 2013 17:19:51 +0000 (19:19 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Apr 2013 13:21:36 +0000 (14:21 +0100)
commitc999836d37c6c1125e856f68877ae13952baa61a
tree77ca9109474b59a6a811e36784f3fed5b3458a2e
parent28c4468b00a1e55e08cc20117de968f7c6275441
ASoC: dmaengine_pcm: Add support for compat platforms

Add support for platforms which don't use devicetree yet or have to optionally
support a non-devicetree way to request the DMA channel. The patch adds the
compat_request_channel and compat_filter_fn callbacks to the
snd_dmaengine_pcm_config struct. If the compat_request_channel is implemented it
will be used to request the DMA channel. If not dma_request_channel with
compat_filter_fn as the filter function will be used to request the channel.

The patch also exports the snd_dmaengine_pcm_request_chan() function, since
compat platforms will want to use it to request their DMA channel.

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>
include/sound/dmaengine_pcm.h
sound/soc/soc-dmaengine-pcm.c
sound/soc/soc-generic-dmaengine-pcm.c
This page took 0.052005 seconds and 5 git commands to generate.