diff options
author | Joel Fernandes <joelf@ti.com> | 2013-10-31 16:31:23 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-11-12 09:17:14 +0530 |
commit | 50a9c70714dfb17a85a3fb762675a64f598d504b (patch) | |
tree | 5a58cf777087ed8948860577dc58c23397f2049b /sound | |
parent | 6b327a028f09a054ac09ef854a90b6e49027f39a (diff) | |
download | linux-50a9c70714dfb17a85a3fb762675a64f598d504b.tar.gz linux-50a9c70714dfb17a85a3fb762675a64f598d504b.tar.bz2 linux-50a9c70714dfb17a85a3fb762675a64f598d504b.zip |
dma: edma: Add support for Cyclic DMA
Using the PaRAM configuration function that we split for reuse by the
different DMA types, we implement Cyclic DMA support.
For the cyclic case, we pass different configuration parameters to this
function, and handle all the Cyclic-specific functionality separately.
Callbacks to the DMA users are handled using vchan_cyclic_callback in
the virt-dma layer. Linking is handled the same way as the slave SG case
except for the last slot where we link it back to the first one in a
cyclic fashion.
For continuity, we check for cases where no.of periods is great than the
MAX number of slots the driver can allocate for a particular descriptor
and error out on such cases.
Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions