ASoC: dmaengine-pcm: Add a common DAI DMA data struct
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 3 Apr 2013 09:06:02 +0000 (11:06 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 3 Apr 2013 17:12:33 +0000 (18:12 +0100)
commit85c9f9c5f9d09ea43daf4f1a8b81d3c7b7394d27
tree832dd28c2f8e763d4a9fc62559db8454af04abef
parent5fa70f71dbf33603b0d29b33d8da128b266eb733
ASoC: dmaengine-pcm: Add a common DAI DMA data struct

This patch adds a common DMA data struct which can be used by DAI drivers to
communicate their DMA configuration requirements to the DMA pcm driver.  Having
a common data structure for this allows us to implement common functions on top
of them, which can be used by multiple platforms.

This patch also introduces a new function to initialize certain fields of a
dma_slave_config struct from the common DAI DMA data struct.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/dmaengine_pcm.h
sound/soc/soc-dmaengine-pcm.c